1. 04 7月, 2000 1 次提交
    • T
      Make toast-table creation and deletion work somewhat reliably. · cdeca5f5
      Tom Lane 提交于
      Don't go through pg_exec_query_dest(), but directly to the execution
      routines.  Also, extend parameter lists so that there's no need to
      change the global setting of allowSystemTableMods, a hack that was
      certain to cause trouble in the event of any error.
      cdeca5f5
  2. 18 6月, 2000 1 次提交
    • T
      Get rid of IndexIsUniqueNoCache() kluge by the simple expedient of · edf0b5f0
      Tom Lane 提交于
      passing the index-is-unique flag to index build routines (duh! ...
      why wasn't it done this way to begin with?).  Aside from eliminating
      an eyesore, this should save a few milliseconds in btree index creation
      because a full scan of pg_index is not needed any more.
      edf0b5f0
  3. 15 6月, 2000 1 次提交
  4. 30 5月, 2000 1 次提交
  5. 13 5月, 2000 1 次提交
    • T
      Squash some more CLUSTER bugs. Never has worked on multiple-column · 475cb157
      Tom Lane 提交于
      indexes, apparently, nor on functional indexes with more than one input
      column (force of natts = 1 was in the wrong branch of IF statement).
      Coredumped if source relation contained any uncommitted tuples, due to
      failure to test for success return from heap_fetch.  Fetched tuple
      was passed directly to heap_insert, which clobbers the TID and commit
      status in the tuple header it's given, which meant that the source
      relation's tuples all got trashed as the copy proceeded.  Abort partway
      through, and you're left with a lot of missing tuples.
      I wonder what else is lurking here ...
      475cb157
  6. 11 5月, 2000 1 次提交
  7. 13 4月, 2000 1 次提交
  8. 26 1月, 2000 1 次提交
    • B
      Add: · 5c25d602
      Bruce Momjian 提交于
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  9. 17 12月, 1999 1 次提交
  10. 10 12月, 1999 1 次提交
  11. 23 11月, 1999 1 次提交
  12. 08 11月, 1999 1 次提交
  13. 19 9月, 1999 1 次提交
    • T
      Mega-commit to make heap_open/heap_openr/heap_close take an · bd272cac
      Tom Lane 提交于
      additional argument specifying the kind of lock to acquire/release (or
      'NoLock' to do no lock processing).  Ensure that all relations are locked
      with some appropriate lock level before being examined --- this ensures
      that relevant shared-inval messages have been processed and should prevent
      problems caused by concurrent VACUUM.  Fix several bugs having to do with
      mismatched increment/decrement of relation ref count and mismatched
      heap_open/close (which amounts to the same thing).  A bogus ref count on
      a relation doesn't matter much *unless* a SI Inval message happens to
      arrive at the wrong time, which is probably why we got away with this
      sloppiness for so long.  Repair missing grab of AccessExclusiveLock in
      DROP TABLE, ALTER/RENAME TABLE, etc, as noted by Hiroshi.
      Recommend 'make clean all' after pulling this update; I modified the
      Relation struct layout slightly.
      Will post further discussion to pghackers list shortly.
      bd272cac
  14. 18 7月, 1999 1 次提交
  15. 16 7月, 1999 3 次提交
  16. 15 7月, 1999 1 次提交
  17. 26 5月, 1999 1 次提交
  18. 14 2月, 1999 1 次提交
  19. 04 2月, 1999 1 次提交
  20. 02 2月, 1999 1 次提交
  21. 22 1月, 1999 1 次提交
    • B
      The following patch finishes primary key support. Previously, when · c91dbcc5
      Bruce Momjian 提交于
      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
  22. 14 12月, 1998 1 次提交
    • M
      · 7c3b7d27
      Marc G. Fournier 提交于
      Initial attempt to clean up the code...
      
      Switch sprintf() to snprintf()
      Remove any/all #if 0 -or- #ifdef NOT_USED -or- #ifdef FALSE sections of
      	code
      7c3b7d27
  23. 28 11月, 1998 1 次提交
  24. 23 9月, 1998 1 次提交
  25. 01 9月, 1998 2 次提交
  26. 21 8月, 1998 1 次提交
  27. 19 8月, 1998 1 次提交
    • B
      heap_fetch requires buffer pointer, must be released; heap_getnext · 79715390
      Bruce Momjian 提交于
      no longer returns buffer pointer, can be gotten from scan;
      	descriptor; bootstrap can create multi-key indexes;
      pg_procname index now is multi-key index; oidint2, oidint4, oidname
      are gone (must be removed from regression tests); use System Cache
      rather than sequential scan in many places; heap_modifytuple no
      longer takes buffer parameter; remove unused buffer parameter in
      a few other functions; oid8 is not index-able; remove some use of
      single-character variable names; cleanup Buffer variables usage
      and scan descriptor looping; cleaned up allocation and freeing of
      tuples; 18k lines of diff;
      79715390
  28. 06 8月, 1998 1 次提交
  29. 28 7月, 1998 1 次提交
  30. 26 7月, 1998 1 次提交
    • M
      · 5979d738
      Marc G. Fournier 提交于
      From: t-ishii@sra.co.jp
      
      As Bruce mentioned, this is due to the conflict among changes we made.
      Included patches should fix the problem(I changed all MB to
      MULTIBYTE). Please let me know if you have further problem.
      
      P.S. I did not include pathces to configure and gram.c to save the
      file size(configure.in and gram.y modified).
      5979d738
  31. 24 7月, 1998 1 次提交
    • M
      · bf00bbb0
      Marc G. Fournier 提交于
      I really hope that I haven't missed anything in this one...
      
      From: t-ishii@sra.co.jp
      
      Attached are patches to enhance the multi-byte support.  (patches are
      against 7/18 snapshot)
      
      * determine encoding at initdb/createdb rather than compile time
      
      Now initdb/createdb has an option to specify the encoding. Also, I
      modified the syntax of CREATE DATABASE to accept encoding option. See
      README.mb for more details.
      
      For this purpose I have added new column "encoding" to pg_database.
      Also pg_attribute and pg_class are changed to catch up the
      modification to pg_database.  Actually I haved added pg_database_mb.h,
      pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is
      enabled. The reason having separate files is I couldn't find a way to
      use ifdef or whatever in those files. I have to admit it looks
      ugly. No way.
      
      * support for PGCLIENTENCODING when issuing COPY command
      
      commands/copy.c modified.
      
      * support for SQL92 syntax "SET NAMES"
      
      See gram.y.
      
      * support for LATIN2-5
      * add UNICODE regression test case
      * new test suite for MB
      
      New directory test/mb added.
      
      * clean up source files
      
      Basic idea is to have MB's own subdirectory for easier maintenance.
      These are include/mb and backend/utils/mb.
      bf00bbb0
  32. 26 2月, 1998 1 次提交
  33. 10 1月, 1998 1 次提交
  34. 06 1月, 1998 1 次提交
  35. 05 1月, 1998 1 次提交
  36. 29 11月, 1997 1 次提交
  37. 28 11月, 1997 1 次提交