Re: savepoint improvements

From: Csaba Nagy <nagy(at)ecircle-ag(dot)com>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, postgres hackers <pgsql-hackers(at)postgresql(dot)org>, db(at)zigo(dot)dhs(dot)org
Subject: Re: savepoint improvements
Date: 2007-01-22 09:15:45
Message-ID: 1169457345.2735.13.camel@coppola.muc.ecircle.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, 2007-01-20 at 18:08, Merlin Moncure wrote:
[snip]
> To be honest, I'm not a huge fan of psql tricks (error recovery being
> another example) but this could provide a solution. in your opnion,
> how would you use \if to query the transaction state?

Wouldn't it make sense to introduce instead something like:

\set language plpgsql
... and then redirect to plpgsql all you type ?

That would give you the possibility to execute things in your favorite
language directly from psql without creating a function.

Cheers,
Csaba.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Adriaan van Os 2007-01-22 09:19:25 Re: [HACKERS] BUG #2907: pg_get_serial_sequence quoting
Previous Message Simon Riggs 2007-01-22 09:09:42 Re: [HACKERS] Autovacuum Improvements