Re: Extensions, this time with a patch
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@commandprompt.com>
Cc: Dimitri Fontaine <dimitri@2ndquadrant.fr>, Itagaki Takahiro <itagaki.takahiro@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2010-10-20T14:54:46Z
Lists: pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes: > Excerpts from Dimitri Fontaine's message of mi oct 20 07:22:53 -0300 2010: >> Using SPI to execute the extension's script already means that it can >> not contain explicit BEGIN and COMMIT commands. Now, is it possible to >> force a Reset of all GUCs after script's execution? > Would it work to force a new transaction internally in CREATE EXTENSION, No, but maybe a savepoint? > and use the equivalent of SET LOCAL in the CREATE EXTENSION code? I had assumed that that was how he was doing it ... regards, tom lane