Showing posts with the label postgresql

[FIXED] Selecting unique values of keys inside postgresql json field

Issue I have the following model: Shipment: reference_numbers: [] :json field reference field…

[FIXED] Flask App Error while deploying to Heroku at=error code=H10 desc=“App crashed” method=GET path=“/”

Issue flask app gives this error on Heroku. it works fine on localhost 2021-08-22T00:04:11.771139+…

[FIXED] Flask SQLAlchemy unable to insert same data

Issue i have a function that will perform insert operation into a table. So basically im trying to …

[FIXED] Oracle JSON_TABLE to PostgreSQL - how to search from the second hierarchical key in a JSON column

Issue I'm trying to migrate Oracle 12c queries to Postgres11.5. Here is the json: { &quo…

[FIXED] Store int, float and boolean in same database column

Issue Is there a sane way of storing int, float and boolean values in the same column in Postgres? …

[FIXED] Sqlalchemy.exc.OperationalError: (psycopg2.OperationalError)

Issue My Flask app (PostgreSQL database) is working fine in local. I pushed my code to server and t…

[FIXED] How do I delete the Postgresql 13 installed by MacPorts?

Issue I tried installing Postgresql 13 on my new computer using MacPorts and have been completely u…

[FIXED] postgresql start db

Issue I have postgresql running (/opt/local/lib/postgresql90/bin). The data base is set up @ /Use…

[FIXED] Django Rest Framework Field Validation Issue

Issue My subscription view is located inside of UserViewSet. I'm wondering why I'm getting …

[FIXED] how to automatically create table based on CSV into postgres using python

Issue I am a new Python programmer and trying to import a sample CSV file into my Postgres database…

[FIXED] Pydantic created at and updated at fields

Issue I'm new to using Pydantic and I'm using it to set up the models for FastAPI to integr…