Re: Creating dynamically-typed tables using psycopg2's built-in formatting - Mailing list psycopg

From Daniel Cohen
Subject Re: Creating dynamically-typed tables using psycopg2's built-in formatting
Date
Msg-id CAHAzoY=gFqbUNVP0zunM3g++yOSOTRJ01Zo_B9k+9g702iLOLA@mail.gmail.com
Whole thread Raw
In response to Re: Creating dynamically-typed tables using psycopg2's built-in formatting  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
List psycopg
Awesome, thanks!

On Fri, Jun 14, 2019 at 12:13 PM Daniele Varrazzo <daniele.varrazzo@gmail.com> wrote:
On Fri, Jun 14, 2019 at 6:44 PM Sebastiaan Mannem <sebastiaan.mannem@enterprisedb.com> wrote:
Yeah,
"schema.tbl" will search all schemas in search path for a table explicitly called "schema.tbl".
So that will never find a table called "tbl", and most probably never find a table at all.

Also note that from psycopg 2.8 you can use Identifier("schema", "tbl") to represent a dot-separated sequence of identifiers.



-- Daniele

psycopg by date:

Previous
From: Daniele Varrazzo
Date:
Subject: Re: Creating dynamically-typed tables using psycopg2's built-in formatting
Next
From: Aryeh Leib Taurog
Date:
Subject: pgcopy 1.4.0 release announcement