Re: pg_temp 101 question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Konstantin Izmailov <pgfizm(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pg_temp 101 question
Date: 2011-01-04 04:20:17
Message-ID: 1330.1294114817@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Konstantin Izmailov <pgfizm(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Konstantin Izmailov 2011-01-04 04:32:12 Re: pg_temp 101 question
Previous Message Konstantin Izmailov 2011-01-04 03:14:16 pg_temp 101 question