[BUGS] Can't use WITH in a PERFORM query in PL/pgSQL?

2011-03-06 Thread depstein
PostgreSQL 9.0.1 It seems that PostgreSQL doesn't understand the WITH construct when used in a PERFORM query inside PL/pgSQL functions and code blocks: Example: do $$begin with A as (select 1 as foo) perform foo from A; end$$; syntax error at or near "perform" do $$begin with A as (select

Re: [BUGS] Can't use WITH in a PERFORM query in PL/pgSQL?

2011-03-06 Thread Vik Reykja
On Sun, Mar 6, 2011 at 14:29, wrote: > The only workaround that I can think of is to use a dummy variable to > capture the query result. This has to be done even when the query doesn’t > have a result (as when calling a function returning void). > > > > do > > $$declare > > dummy record; > > begi

Re: [BUGS] BUG #5915: OldSerXidAdd inflates pg_serial too much

2011-03-06 Thread Kevin Grittner
Heikki Linnakangas wrote: > Here's what I had in mind. Can you review The additions and modifications to the comments all look good to me. I can see why you renamed one field and eliminated another; no problem there. I'm really surprised, when you ignore those changes, how little was needed t