About 50 results
Open links in new tab
  1. How to connect Python to PostgreSQL - Stack Overflow

    On googling, I found documents about PyGreSQL library that would help me connect Python to Postgres. However, I cannot find the link to download the package anywhere.

  2. How to connect python to postgres through docker-compose?

    Aug 14, 2022 · I can't connect muy python app to postgres all run over docker, this is muy dockerfile: FROM python:3.8 RUN mkdir /app WORKDIR /app ADD . /app/ ADD requirements.txt …

  3. How To Call Postgres 11 Stored Procedure From Python

    Mar 5, 2019 · I have a stored procedure in Postgres called sales, and it works well from pgadmin: CALL sales(); However, when I call it from Python: import psycopg2 conn = psycopg2.connect (host ....) cur …

  4. Parameterized queries with psycopg2 / Python DB-API and PostgreSQL

    Oct 18, 2013 · What's the best way to make psycopg2 pass parameterized queries to PostgreSQL? I don't want to write my own escpaing mechanisms or adapters and the psycopg2 source code and …

  5. python - How do I get tables in postgres using psycopg2 ... - Stack ...

    May 15, 2012 · Can someone please explain how I can get the tables in the current database? I am using postgresql-8.4 psycopg2.

  6. Python Postgres - psycopg2.ProgrammingError: no results to fetch

    Jun 1, 2017 · Python Postgres - psycopg2.ProgrammingError: no results to fetch Asked 8 years, 8 months ago Modified 6 years, 4 months ago Viewed 33k times

  7. Python psycopg2 postgres select columns including field names

    Python psycopg2 postgres select columns including field names Asked 12 years, 8 months ago Modified 2 years, 6 months ago Viewed 28k times

  8. How to insert current_timestamp into Postgres via python

    May 16, 2011 · I need to insert rows into PG one of the fields is date and time with time stamp, this is the time of incident, so I can not use --> current_timestamp function of Postgres at the time of insertion,...

  9. python postgres can I fetchall () 1 million rows? - Stack Overflow

    I am using psycopg2 module in python to read from postgres database, I need to some operation on all rows in a column, that has more than 1 million rows. I would like to know would cur.fetchall() ...

  10. Postgres: INSERT if does not exist already - Stack Overflow

    Nov 1, 2010 · -2 Here is a generic python function that given a tablename, columns and values, generates the upsert equivalent for postgresql. import json