pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jerry Sievers <gsievers19@comcast.net>
Cc: pgsql-general@postgresql.org
Subject: Re: Which backend using which pg_temp_N schema?
Date: Wed, 6 Jun 2018 15:51:58 -0700
Message-ID: <120a2059-3232-c580-5f68-7ce7545f5edb@aklaver.com> (raw)
In-Reply-To: <87muw7iqab.fsf@jsievers.enova.com>
References: <87o9go3nok.fsf@jsievers.enova.com>
	<81d847d2-59eb-0094-59cf-b91565213f44@aklaver.com>
	<87k1rc3ibz.fsf@jsievers.enova.com>
	<52ec7e75-9159-7879-fdeb-8d5d120b6ac9@aklaver.com>
	<877enbsyf3.fsf@jsievers.enova.com>
	<69dacd21-cac6-602d-de27-9b66e4e25eaf@aklaver.com>
	<87muw7iqab.fsf@jsievers.enova.com>

On 06/06/2018 02:00 PM, Jerry Sievers wrote:
> Adrian Klaver <adrian.klaver@aklaver.com> writes:
> 
>> On 06/06/2018 08:54 AM, Jerry Sievers wrote:
>>
>>> Adrian Klaver <adrian.klaver@aklaver.com> writes:
>>>
>>>
>>> Yep thanks... but IMO something that simply exposes whatever internal
>>> registry of temp schemas/PIDs (which I presume must exist) to DBA SQL
>>> avoids any perhaps unreliable hackery such as having to scrape query
>>> text from pg_stat_activity or similar.
>>>
>>> To wit; A long standing session might have any number of temp objects
>>> existing for which records of same in the aforementioned views has long
>>> since been overwritten.
>>
>> True assuming there is no activity against the objects or no open
>> transactions.
>>
>> So what you interested in:
>>
>> 1) What created a temporary object?
> 
> Yes.  Which *session*.

Alright, finally got it through my thick skull:) I was fixated on the 
statement that created the table.

> 
> Thx
> 
>>
>> 2) Temporary objects that are the playing at being permanent objects?
>>
>> 3) Both of the above?
>>
>>
>>>
>>>
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (10+ messages)

Message-ID: <120a2059-3232-c580-5f68-7ce7545f5edb@aklaver.com>
Permalink:  ../120a2059-3232-c580-5f68-7ce7545f5edb@aklaver.com/
Also on:    postgresql.org/message-id/120a2059-3232-c580-5f68-7ce7545f5edb@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, gsievers19@comcast.net
  Subject: Re: Which backend using which pg_temp_N schema?
  In-Reply-To: <120a2059-3232-c580-5f68-7ce7545f5edb@aklaver.com>
  References: <87o9go3nok.fsf@jsievers.enova.com> <81d847d2-59eb-0094-59cf-b91565213f44@aklaver.com> <87k1rc3ibz.fsf@jsievers.enova.com> <52ec7e75-9159-7879-fdeb-8d5d120b6ac9@aklaver.com> <877enbsyf3.fsf@jsievers.enova.com> <69dacd21-cac6-602d-de27-9b66e4e25eaf@aklaver.com> <87muw7iqab.fsf@jsievers.enova.com> <120a2059-3232-c580-5f68-7ce7545f5edb@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox