postgresql/src/backend
Bruce Momjian 03155dc764 It seems that SPI_prepare() doesn't work well in some cases.
Pawel Pierscionek [pawel@astercity.net] reported about the
following case 1([SQL] drop table in pgsql).
Michael Contzen [mcontzen@dohle.com] reported about the
following case 2(PL/PGSQL bug using aggregates).
You can find it from pgsql-hackers archive.

1. PL/pgSQL can't execute UTILITY commands.
   SPI_prepare() doesn't copy(save) the utilityStmt member of
   Query type nodes,because copyObject() is not implemented
   for nodes of (Create/Destroy etc)Stmt type.

2. Aggregates in PL/pgSQL cause wrong results.

...
   It's a list including Aggreg type nodes which exist in
   TargetList(i.e Aggreg type nodes are common to aggs
   member list and TargetList).
   AFAIC the common pointer is not copied to the same
   pointer by copyObject() function.
   In my patch I reconstruct aggs member node from
   new(copied) Agg type node.
   Is it proper to use set_agg_tlist_references() function to
   reconstruct aggs member node for Agg type nodes ?

Thanks.

Hiroshi Inoue
Inoue@tpf.co.jp
1999-01-21 22:55:41 +00:00
..
access Add a set of braces to clarify conditional nesting. 1999-01-20 16:24:59 +00:00
bootstrap The following patch finishes primary key support. Previously, when 1999-01-21 22:48:20 +00:00
catalog The following patch finishes primary key support. Previously, when 1999-01-21 22:48:20 +00:00
commands The following patch finishes primary key support. Previously, when 1999-01-21 22:48:20 +00:00
executor Hi! 1999-01-18 00:10:17 +00:00
lib more cleanups...of note, appendStringInfo now performs like sprintf(), 1998-12-14 08:11:17 +00:00
libpq Fix cfor typos. 1999-01-18 06:46:33 +00:00
main OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
nodes It seems that SPI_prepare() doesn't work well in some cases. 1999-01-21 22:55:41 +00:00
optimizer Hi! 1999-01-18 00:10:17 +00:00
parser The following patch finishes primary key support. Previously, when 1999-01-21 22:48:20 +00:00
port Add missing Windows files. 1999-01-18 12:43:55 +00:00
postmaster Apply Win32 patch from Horak Daniel. 1999-01-17 06:20:06 +00:00
regex OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
rewrite FOR UPDATE is in parser & rules. 1999-01-21 16:08:55 +00:00
storage The following patch finishes primary key support. Previously, when 1999-01-21 22:48:20 +00:00
tcop The following patch finishes primary key support. Previously, when 1999-01-21 22:48:20 +00:00
tioga OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
utils FOR UPDATE is in parser & rules. 1999-01-21 16:08:55 +00:00
Makefile FOR UPDATE is in parser & rules. 1999-01-21 16:08:55 +00:00