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. 19 6月, 2000 1 次提交
    • T
      Reimplement nodeMaterial to use a temporary BufFile (or even memory, if the · 1ee26b77
      Tom Lane 提交于
      materialized tupleset is small enough) instead of a temporary relation.
      This was something I was thinking of doing anyway for performance, and Jan
      says he needs it for TOAST because he doesn't want to cope with toasting
      noname relations.  With this change, the 'noname table' support in heap.c
      is dead code, and I have accordingly removed it.  Also clean up 'noname'
      plan handling in planner --- nonames are either sort or materialize plans,
      and it seems less confusing to handle them separately under those names.
      1ee26b77
  3. 13 4月, 2000 1 次提交
  4. 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
  5. 22 1月, 2000 1 次提交
  6. 10 12月, 1999 1 次提交
  7. 04 11月, 1999 1 次提交
    • H
      Make it possible to execute crashed CREATE/DROP commands again. · 2e2189a5
      Hiroshi Inoue 提交于
      Now indexes of pg_class and pg_type are unique indexes
      and guarantee the uniqueness of correponding attributes.
      heap_create() was changed to take another boolean parameter
      which allows to postpone the creation of disk file.
      The name of rd_nonameunlinked was changed to rd_unlinked.
      It is used generally(not only for noname relations) now.
      Requires initdb.
      2e2189a5
  8. 26 10月, 1999 1 次提交
    • B
      Hello. · 577e21b3
      Bruce Momjian 提交于
      The following patch extends the COMMENT ON functionality to the
      rest of the database objects beyond just tables, columns, and views. The
      grammer of the COMMENT ON statement now looks like:
      
      COMMENT ON [
        [ DATABASE | INDEX | RULE | SEQUENCE | TABLE | TYPE | VIEW ] <objname>
      |
      
        COLUMN <relation>.<attribute> |
        AGGREGATE <aggname> <aggtype> |
        FUNCTION <funcname> (arg1, arg2, ...) |
        OPERATOR <op> (leftoperand_typ rightoperand_typ) |
        TRIGGER <triggername> ON relname>
      
      Mike Mascari
      (mascarim@yahoo.com)
      577e21b3
  9. 15 10月, 1999 1 次提交
    • B
      This patch implements ORACLE's COMMENT SQL command. · 7acc2377
      Bruce Momjian 提交于
      >From the ORACLE 7 SQL Language Reference Manual:
      -----------------------------------------------------
      COMMENT
      
      Purpose:
      
      To add a comment about a table, view, snapshot, or
      column into the data dictionary.
      
      Prerequisites:
      
      The table, view, or snapshot must be in your own
      schema
      or you must have COMMENT ANY TABLE system privilege.
      
      Syntax:
      
      COMMENT ON [ TABLE table ] |
                 [ COLUMN table.column] IS 'text'
      
      You can effectively drop a comment from the database
      by setting it to the empty string ''.
      -----------------------------------------------------
      
      Example:
      
      COMMENT ON TABLE workorders IS
         'Maintains base records for workorder information';
      
      COMMENT ON COLUMN workorders.hours IS
         'Number of hours the engineer worked on the task';
      
      to drop a comment:
      
      COMMENT ON COLUMN workorders.hours IS '';
      
      The current patch will simply perform the insert into
      pg_description, as per the TODO. And, of course, when
      the table is dropped, any comments relating to it
      or any of its attributes are also dropped. I haven't
      looked at the ODBC source yet, but I do know from
      an ODBC client standpoint that the standard does
      support the notion of table and column comments.
      Hopefully the ODBC driver is already fetching these
      values from pg_description, but if not, it should be
      trivial.
      
      Hope this makes the grade,
      
      Mike Mascari
      (mascarim@yahoo.com)
      7acc2377
  10. 04 10月, 1999 1 次提交
    • T
      Reimplement parsing and storage of default expressions and constraint · eabc714a
      Tom Lane 提交于
      expressions in CREATE TABLE.  There is no longer an emasculated expression
      syntax for these things; it's full a_expr for constraints, and b_expr
      for defaults (unfortunately the fact that NOT NULL is a part of the
      column constraint syntax causes a shift/reduce conflict if you try a_expr.
      Oh well --- at least parenthesized boolean expressions work now).  Also,
      stored expression for a column default is not pre-coerced to the column
      type; we rely on transformInsertStatement to do that when the default is
      actually used.  This means "f1 datetime default 'now'" behaves the way
      people usually expect it to.
      BTW, all the support code is now there to implement ALTER TABLE ADD
      CONSTRAINT and ALTER TABLE ADD COLUMN with a default value.  I didn't
      actually teach ALTER TABLE to call it, but it wouldn't be much work.
      eabc714a
  11. 24 9月, 1999 1 次提交
  12. 16 7月, 1999 1 次提交
  13. 26 5月, 1999 1 次提交
  14. 14 2月, 1999 1 次提交
  15. 02 2月, 1999 1 次提交
  16. 01 9月, 1998 2 次提交
  17. 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
  18. 06 8月, 1998 1 次提交
  19. 26 2月, 1998 1 次提交
  20. 25 1月, 1998 1 次提交
  21. 29 11月, 1997 1 次提交
  22. 28 11月, 1997 1 次提交
  23. 22 11月, 1997 1 次提交
  24. 09 9月, 1997 1 次提交
  25. 08 9月, 1997 1 次提交
  26. 07 9月, 1997 1 次提交
  27. 20 8月, 1997 1 次提交
  28. 10 11月, 1996 1 次提交
  29. 05 11月, 1996 1 次提交
  30. 28 8月, 1996 1 次提交
  31. 09 7月, 1996 1 次提交