1. 29 Jan, 1999 3 commits
  2. 28 Jan, 1999 3 commits
  3. 27 Jan, 1999 6 commits
  4. 26 Jan, 1999 3 commits
  5. 25 Jan, 1999 4 commits
  6. 24 Jan, 1999 6 commits
  7. 23 Jan, 1999 3 commits
  8. 22 Jan, 1999 4 commits
  9. 21 Jan, 1999 7 commits
    • Bruce Momjian's avatar
      It seems that SPI_prepare() doesn't work well in some cases. · 03155dc7
      Bruce Momjian authored
      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
      03155dc7
    • Bruce Momjian's avatar
      Here is a new version of my patch for allowing pg_dump to DROP schema · 289a826d
      Bruce Momjian authored
      elements prior to CREATEing new ones.  It is under control of the -c
      command line option (with the default being status quo).
      
      The DROP TRIGGER portion still needs implementation.  Anyone able to
      help clarify what exactly the CREATE TRIGGER portion does so I can fix
      this?
      
      Again, I have tried this with tables/indexes/sequences, but do not
      have other schema elements in my database.  As a result, I am not 100%
      convinced that I got the syntax correct in all cases (but think I did,
      nonetheless).  If anyone can check the other cases, I'd appreciate it.
      
      Cheers,
      Brook
      
      [I added manual page and sgml additions for the new -c option.]
      289a826d
    • Bruce Momjian's avatar
      The following patch finishes primary key support. Previously, when · c91dbcc5
      Bruce Momjian authored
      a field was labelled as a primary key, the system automatically
      created a unique index on the field.  This patch extends it so
      that the index has the indisprimary field set.  You can pull a list
      of primary keys with the followiing select.
      
      SELECT pg_class.relname, pg_attribute.attname
          FROM pg_class, pg_attribute, pg_index
          WHERE pg_class.oid = pg_attribute.attrelid AND
              pg_class.oid = pg_index.indrelid AND
              pg_index.indkey[0] = pg_attribute.attnum AND
              pg_index.indisunique = 't';
      
      There is nothing in this patch that modifies the template database to
      set the indisprimary attribute for system tables.  Should they be
      changed or should we only be concerned with user tables?
      
      D'Arcy
      c91dbcc5
    • Bruce Momjian's avatar
      i have made minor changes to array_iterator to make it work with · 7311da9e
      Bruce Momjian authored
      pgsql-6.3.2. I think array_iterator is a great thing to have!!!
      
      With best regards,
      
      
      Tobias Gabele
      7311da9e
    • Marc G. Fournier's avatar
      · cdbaec77
      Marc G. Fournier authored
      From: Michael Meskes <Michael.Meskes@usa.net>
      
      See attached file. Now accepts "exec sql whenever sqlwarning".
      cdbaec77
    • Vadim B. Mikheev's avatar
      1f379056
    • Vadim B. Mikheev's avatar
      FOR UPDATE is in parser & rules. · 12be3e08
      Vadim B. Mikheev authored
      12be3e08
  10. 20 Jan, 1999 1 commit