Re: pg_temp 101 question - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_temp 101 question
Date
Msg-id 1330.1294114817@sss.pgh.pa.us
Whole thread Raw
In response to pg_temp 101 question  (Konstantin Izmailov <pgfizm@gmail.com>)
Responses Re: pg_temp 101 question  (Konstantin Izmailov <pgfizm@gmail.com>)
List pgsql-general
Konstantin Izmailov <pgfizm@gmail.com> writes:
> My application creates/uses a temporary table "X" via multiple
> connections at the same time. Is there a way to determine which
> pg_temp_N belongs to the current connection?

It seems unlikely that you need to determine that explicitly to solve
your problem.  Just use WHERE C.oid = 'X'::regclass to constrain the
pg_class query, and forget matching to the schema name at all.

            regards, tom lane

pgsql-general by date:

Previous
From: Konstantin Izmailov
Date:
Subject: pg_temp 101 question
Next
From: Konstantin Izmailov
Date:
Subject: Re: pg_temp 101 question