1. 03 8月, 2002 1 次提交
    • T
      ALTER TABLE DROP COLUMN works. Patch by Christopher Kings-Lynne, · 38bb77a5
      Tom Lane 提交于
      code review by Tom Lane.  Remaining issues: functions that take or
      return tuple types are likely to break if one drops (or adds!)
      a column in the table defining the type.  Need to think about what
      to do here.
      
      Along the way: some code review for recent COPY changes; mark system
      columns attnotnull = true where appropriate, per discussion a month ago.
      38bb77a5
  2. 01 8月, 2002 1 次提交
    • T
      Instead of having a configure-time DEFAULT_ATTSTATTARGET, store -1 in · ce7565ab
      Tom Lane 提交于
      attstattarget to indicate 'use the default'.  The default is now a GUC
      variable default_statistics_target, and so may be changed on the fly.  Along
      the way we gain the ability to have pg_dump dump the per-column statistics
      target when it's not the default.  Patch by Neil Conway, with some kibitzing
      from Tom Lane.
      ce7565ab
  3. 31 7月, 2002 2 次提交
    • B
      Remove last recipe file. · ad63a551
      Bruce Momjian 提交于
      ad63a551
    • B
      IMPROVED VERSION APPLIED: · 874148fe
      Bruce Momjian 提交于
      The attached patch completes the following TODO item:
      
          * Generate failure on short COPY lines rather than pad NULLs
      
      I also restructed a lot of the existing COPY code, did some code
      review on the column list patch sent in by Brent Verner a little
      while ago, and added some regression tests. I also added an
      explicit check (and resultant error) for extra data before
      the end-of-line.
      
      Neil Conway
      874148fe
  4. 30 7月, 2002 4 次提交
  5. 25 7月, 2002 3 次提交
    • T
      Implement DROP CONVERSION · 0345f584
      Tatsuo Ishii 提交于
      Add regression test
      0345f584
    • P
      Remove _deadcode. · 43515ba3
      Peter Eisentraut 提交于
      43515ba3
    • P
      Remove unused system table columns: · 739adf32
      Peter Eisentraut 提交于
      pg_language.lancompiler
      pg_operator.oprprec
      pg_operator.oprisleft
      pg_proc.proimplicit
      pg_proc.probyte_pct
      pg_proc.properbyte_cpu
      pg_proc.propercall_cpu
      pg_proc.prooutin_ratio
      pg_shadow.usetrace
      pg_type.typprtlen
      pg_type.typreceive
      pg_type.typsend
      
      Attempts to use the obsoleted attributes of pg_operator or pg_proc
      in the CREATE commands will be greeted by a warning.  For pg_type,
      there is no warning (yet) because pg_dump scripts still contain these
      attributes.
      
      Also remove new but already obsolete spellings
      isVolatile, isStable, isImmutable in WITH clause.  (Use new syntax
      instead.)
      739adf32
  6. 23 7月, 2002 1 次提交
  7. 21 7月, 2002 1 次提交
  8. 20 7月, 2002 6 次提交
    • T
      Code review for SHOW output changes; fix horology expected files for · c33a6343
      Tom Lane 提交于
      new SHOW output format.
      c33a6343
    • B
      63cfc6a8
    • B
      > 2. This patch includes the same Table Function API fixes that I · 1ce03603
      Bruce Momjian 提交于
      >    submitted on July 9:
      >
      >    http://archives.postgresql.org/pgsql-patches/2002-07/msg00056.php
      >
      >    Please disregard that one *if* this one is applied. If this one is
      >    rejected please go ahead with the July 9th patch.
      
      The July 9th Table Function API patch mentioned above is now in CVS, so
      here is an updated version of the guc patch which should apply cleanly
      against CVS tip.
      
      Joe Conway
      1ce03603
    • B
      dcbacde2
    • B
      oid is needed, it is added at the end of the struct (after the null · b0f5086e
      Bruce Momjian 提交于
      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
    • B
      This patch fixes a regression caused by my recent changes to heap · e77054e0
      Bruce Momjian 提交于
      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
  9. 19 7月, 2002 2 次提交
  10. 18 7月, 2002 2 次提交
    • B
      The attached patch (against HEAD) implements · a90db34b
      Bruce Momjian 提交于
        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
    • T
      I have committed many support files for CREATE CONVERSION. Default · eb335a03
      Tatsuo Ishii 提交于
      conversion procs and conversions are added in initdb. Currently
      supported conversions are:
      
      UTF-8(UNICODE) <--> SQL_ASCII, ISO-8859-1 to 16, EUC_JP, EUC_KR,
      		    EUC_CN, EUC_TW, SJIS, BIG5, GBK, GB18030, UHC,
      		    JOHAB, TCVN
      
      EUC_JP <--> SJIS
      EUC_TW <--> BIG5
      MULE_INTERNAL <--> EUC_JP, SJIS, EUC_TW, BIG5
      
      Note that initial contents of pg_conversion system catalog are created
      in the initdb process. So doing initdb required is ideal, it's
      possible to add them to your databases by hand, however. To accomplish
      this:
      
      psql -f your_postgresql_install_path/share/conversion_create.sql your_database
      
      So I did not bump up the version in cataversion.h.
      
      TODO:
      Add more conversion procs
      Add [CASCADE|RESTRICT] to DROP CONVERSION
      Add tuples to pg_depend
      Add regression tests
      Write docs
      Add SQL99 CONVERT command?
      --
      Tatsuo Ishii
      eb335a03
  11. 17 7月, 2002 1 次提交
  12. 16 7月, 2002 2 次提交
  13. 15 7月, 2002 1 次提交
  14. 13 7月, 2002 1 次提交
    • T
      Second phase of committing Rod Taylor's pg_depend/pg_constraint patch. · 7c6df91d
      Tom Lane 提交于
      pg_relcheck is gone; CHECK, UNIQUE, PRIMARY KEY, and FOREIGN KEY
      constraints all have real live entries in pg_constraint.  pg_depend
      exists, and RESTRICT/CASCADE options work on most kinds of DROP;
      however, pg_depend is not yet very well populated with dependencies.
      (Most of the ones that are present at this point just replace formerly
      hardwired associations, such as the implicit drop of a relation's pg_type
      entry when the relation is dropped.)  Need to add more logic to create
      dependency entries, improve pg_dump to dump constraints in place of
      indexes and triggers, and add some regression tests.
      7c6df91d
  15. 11 7月, 2002 1 次提交
    • T
      Add new CREATE CONVERSION/DROP CONVERSION command. · fcc96256
      Tatsuo Ishii 提交于
      This is the first cut toward CREATE CONVERSION/DROP CONVERSION implementaion.
      The commands can now add/remove tuples to the new pg_conversion system
      catalog, but that's all. Still need work to make them actually working.
      Documentations, regression tests also need work.
      fcc96256
  16. 07 7月, 2002 1 次提交
  17. 01 7月, 2002 1 次提交
    • T
      First phase of applying Rod Taylor's pg_depend patch. This just adds · 131f801d
      Tom Lane 提交于
      RESTRICT/CASCADE syntax to the DROP commands that need it, and propagates
      the behavioral option through the parser to the routines that execute
      drops.  Doesn't do anything useful yet, but I figured I'd commit these
      changes so I could get out of the parser area while working on the rest.
      131f801d
  18. 21 6月, 2002 3 次提交
  19. 19 6月, 2002 1 次提交
  20. 17 6月, 2002 1 次提交
  21. 16 6月, 2002 4 次提交