1. 22 Aug, 2002 1 commit
    • Bruce Momjian's avatar
      # Disallow TRUNCATE on tables that are involved in referential · 47b37a6b
      Bruce Momjian authored
      constraints
      
      
      The issue with finding and removing foreign key constraints is no longer
      an issue, so please apply the attached.
      
      It does NOT check for rules or on delete triggers (old style foreign
      keys) as those are difficult to deal with (remove, truncate, re-add).
      
      Rod Taylor
      47b37a6b
  2. 11 Aug, 2002 1 commit
  3. 25 Jul, 2002 1 commit
  4. 20 Jul, 2002 2 commits
    • Bruce Momjian's avatar
      oid is needed, it is added at the end of the struct (after the null · b0f5086e
      Bruce Momjian authored
      bitmap, if present).
      
      Per Tom Lane's suggestion the information whether a tuple has an oid
      or not is carried in the tuple descriptor.  For debugging reasons
      tdhasoid is of type char, not bool.  There are predefined values for
      WITHOID, WITHOUTOID and UNDEFOID.
      
      This patch has been generated against a cvs snapshot from last week
      and I don't expect it to apply cleanly to current sources.  While I
      post it here for public review, I'm working on a new version against a
      current snapshot.  (There's been heavy activity recently; hope to
      catch up some day ...)
      
      This is a long patch;  if it is too hard to swallow, I can provide it
      in smaller pieces:
      
      Part 1:  Accessor macros
      Part 2:  tdhasoid in TupDesc
      Part 3:  Regression test
      Part 4:  Parameter withoid to heap_addheader
      Part 5:  Eliminate t_oid from HeapTupleHeader
      
      Part 2 is the most hairy part because of changes in the executor and
      even in the parser;  the other parts are straightforward.
      
      Up to part 4 the patched postmaster stays binary compatible to
      databases created with an unpatched version.  Part 5 is small (100
      lines) and finally breaks compatibility.
      
      Manfred Koizar
      b0f5086e
    • Bruce Momjian's avatar
      This patch fixes a regression caused by my recent changes to heap · e77054e0
      Bruce Momjian authored
      tuple header.  The fix is based on the thought that HEAP_MOVED_IN is
      not needed any more as soon as HEAP_XMIN_COMMITTED has been set.  So
      in tqual.c and vacuum.c the HEAP_MOVED bits are cleared when
      HEAP_XMIN_COMMITTED is set.
      
      Vacuum robustness is enhanced by rearranging ifs, so that we have a
      chance to elog(ERROR, ...) before an assertion fails.
      
      A new regression test is included.
      
      Manfred Koizar
      e77054e0
  5. 18 Jul, 2002 1 commit
    • Bruce Momjian's avatar
      The attached patch (against HEAD) implements · a90db34b
      Bruce Momjian authored
        COPY x (a,d,c,b) from stdin;
        COPY x (a,c) to stdout;
      
      as well as the corresponding changes to pg_dump to use the new
      functionality.  This functionality is not available when using
      the BINARY option.  If a column is not specified in the COPY FROM
      statement, its default values will be used.
      
      In addition to this functionality, I tweaked a couple of the
      error messages emitted by the new COPY <options> checks.
      
      Brent Verner
      a90db34b
  6. 20 Jun, 2002 1 commit
  7. 05 Apr, 2002 1 commit
  8. 19 Mar, 2002 1 commit
  9. 29 Sep, 2001 1 commit
  10. 28 Sep, 2001 1 commit
  11. 12 Jun, 2001 2 commits
    • Bruce Momjian's avatar
      Back out has_table_privilege patch. · 76e9ad1f
      Bruce Momjian authored
      76e9ad1f
    • Bruce Momjian's avatar
      OK -- here's take #5. · 58c909bb
      Bruce Momjian authored
      It "make"s and "make check"s clean against current cvs tip.
      
      There are now both Text and Name variants, and the regression test support
      is rolled into the patch. Note that to be complete wrt Name based variants,
      there are now 12 user visible versions of has_table_privilege:
      
      has_table_privilege(Text usename, Text relname, Text priv_type)
      has_table_privilege(Text usename, Name relname, Text priv_type)
      has_table_privilege(Name usename, Text relname, Text priv_type)
      has_table_privilege(Name usename, Name relname, Text priv_type)
      has_table_privilege(Text relname, Text priv_type) /* assumes current_user */
      has_table_privilege(Name relname, Text priv_type) /* assumes current_user */
      has_table_privilege(Text usename, Oid reloid, Text priv_type)
      has_table_privilege(Name usename, Oid reloid, Text priv_type)
      has_table_privilege(Oid reloid, Text priv_type)  /* assumes current_user */
      has_table_privilege(Oid usesysid, Text relname, Text priv_type)
      has_table_privilege(Oid usesysid, Name relname, Text priv_type)
      has_table_privilege(Oid usesysid, Oid reloid, Text priv_type)
      
      For the Text based inputs, a new internal function, get_Name is used
      (shamelessly copied from get_seq_name in sequence.c) to downcase if not
      quoted, or remove quotes if quoted, and truncate. I also added a few test
      cases for the downcasing, quote removal, and Name based variants to the
      regression test.
      
      Joe Conway
      58c909bb
  12. 27 May, 2001 1 commit
  13. 22 Nov, 2000 1 commit
  14. 29 Sep, 2000 1 commit