Re: DISCARD ALL (Again) - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: DISCARD ALL (Again)
Date
Msg-id 53513E07.4050101@gmx.net
Whole thread Raw
In response to Re: DISCARD ALL (Again)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: DISCARD ALL (Again)
Re: DISCARD ALL (Again)
List pgsql-hackers
On 4/17/14, 8:24 PM, Tom Lane wrote:
> We could in fact implement #2, I imagine, by destroying and recreating
> the entire language interpreter.  So I could imagine implementing a
> "DISCARD INTERPRETERS" kind of command that would zap the current
> interpreter(s) for whichever PL languages happened to feel like
> cooperating with the command.

More generally, any extension could maintain any kind of cross-call
state.  plproxy, dblink, pgmemcache come to mind.  A general hook into
DISCARD might be doable, but then it's not clear how to categorize this
into DISCARD subcommands.




pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: assertion in 9.4 with wal_level=logical
Next
From: Peter Eisentraut
Date:
Subject: Re: DISCARD ALL (Again)