1. 01 9月, 1998 1 次提交
  2. 26 8月, 1998 2 次提交
    • B
      Make attalign match type alignment. · 093beb35
      Bruce Momjian 提交于
      093beb35
    • M
      · f62d1253
      Marc G. Fournier 提交于
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      >       these patches define the UNLISTEN sql command. The code already
      >       existed but it was unknown to the parser. Now it can be used
      >       like the listen command.
      >       You must make clean and delete gram.c and parser.h before make.
      f62d1253
  3. 25 8月, 1998 1 次提交
  4. 24 8月, 1998 1 次提交
    • B
      o note that now pg_database has a new attribuite "encoding" even · c0b01461
      Bruce Momjian 提交于
      if MULTIBYTE is not enabled. So be sure to run initdb.
      
      o these patches are made against the latest source tree (after
      Bruce's massive patch, I think) BTW, I noticed that after running
      regression, the oid field of pg_type seems disappeared.
      
      	regression=> select oid from pg_type; ERROR:  attribute
      	'oid' not found
      
      this happens after the constraints test. This occures with/without
      my patches. strange...
      
      o pg_database_mb.h, pg_class_mb.h, pg_attribute_mb.h are no longer
      used, and shoud be removed.
      
      o GetDatabaseInfo() in utils/misc/database.c removed (actually in
      #ifdef 0). seems nobody uses.
      
      t-ishii@sra.co.jp
      c0b01461
  5. 18 8月, 1998 2 次提交
    • M
      · 338c54cb
      Marc G. Fournier 提交于
      From: Jan Wieck <jwieck@debis.com>
      
      Hi,
      
          as  proposed here comes the first patch for the query rewrite
          system.
      
        <for details, see archive dated Mon, 17 Aug 1998>
      338c54cb
    • T
      Allow NOT LIKE, IN, NOT IN, BETWEEN, and NOT BETWEEN expressions · 73fae67a
      Thomas G. Lockhart 提交于
       in constraint clauses.
       IN and NOT IN only allow constaints, not subselects.
      Jose' Soares' new reference docs pointed out the discrepency.
       Updating the docs too...
      73fae67a
  6. 05 8月, 1998 2 次提交
    • M
      · a1627a1d
      Marc G. Fournier 提交于
      From: David Hartwig <daybee@bellatlantic.net>
      
      I have attached a patch to allow GROUP BY and/or ORDER BY function or
      expressions.  Note worthy items:
      
      1. The expression or function need not be in the target list.
      Example:
                  SELECT  name FROM foo GROUP BY lower(name);
      
      2.   Simplified the grammar to use expressions only.
      
      3.  Cleaned up earlier patch in this area to make use of existing
      utility functions.
      
      3.  Reduced some of the members in the SortGroupBy parse node.   The
      original data members were redundant with the new expression node.
      (MUST do a "make clean" now)
      
      4.  Added a new parse node "JoinUsing".   The JOIN USING clause was
      overloading this SortGroupBy structure.   With the afore mentioned
      reduction of members, the two clauses lost all their commonality.
      
      5.  A bug still exist where, if a function or expression is GROUPed BY,
      and an aggregate function does not include a attribute from the
      expression or function, the backend crashes.   (or something like
      that)   The bug pre-dates this patch.    Example:
      
          SELECT lower(a) AS lowcase, count(b) FROM foo GROUP BY lowcase;
                       *** BOOM  ***
      
          --Also when not in target list
          SELECT  count(b) FROM foo GROUP BY lower(a);
                      *** BOOM  AGAIN ***
      a1627a1d
    • B
      Fix encoding grammer problem. · 0b442388
      Bruce Momjian 提交于
      0b442388
  7. 26 7月, 1998 2 次提交
    • 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
    • B
      Fix compile error. Make transaction/work optional on all transaction · 01a651aa
      Bruce Momjian 提交于
      statements.  More cleanups of psql help.  Fix for shift/reduce on
      UNION in subselect.
      01a651aa
  8. 25 7月, 1998 1 次提交
  9. 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
  10. 19 7月, 1998 1 次提交
    • B
      1) Queries using the having clause on base tables should work well · 460b20a4
      Bruce Momjian 提交于
         now. Here some tested features, (examples included in the patch):
      
      1.1) Subselects in the having clause 1.2) Double nested subselects
      1.3) Subselects used in the where clause and in the having clause
           simultaneously 1.4) Union Selects using having 1.5) Indexes
      on the base relations are used correctly 1.6) Unallowed Queries
      are prevented (e.g. qualifications in the
           having clause that belong to the where clause) 1.7) Insert
      into as select
      
      2) Queries using the having clause on view relations also work
         but there are some restrictions:
      
      2.1) Create View as Select ... Having ...; using base tables in
      the select 2.1.1) The Query rewrite system:
      
      2.1.2) Why are only simple queries allowed against a view from 2.1)
      ? 2.2) Select ... from testview1, testview2, ... having...; 3) Bug
      in ExecMergeJoin ??
      
      
      Regards Stefan
      460b20a4
  11. 15 7月, 1998 1 次提交
  12. 08 7月, 1998 1 次提交
  13. 10 5月, 1998 1 次提交
    • T
      Implement TIMEZONE_HOUR, TIMEZONE_MINUTE per SQL92 specs. · ca354d90
      Thomas G. Lockhart 提交于
      Check for and properly ignore FOREIGN KEY column constraints
       (already had fixed same for table constraints).
      Define USER as synonym for CURRENT_USER per SQL92 specs
       (no longer allowed as bare column name, sorry).
      Re-enable HAVING clause but no fixes elsewhere yet.
      Make "char" type a synonum for "char(1)" (actually implemented as bpchar).
      Compress/compact row-style subselect and operator definitions
       (cut out ~140 lines of code with no change in functionality).
      Save string type if specified for DEFAULT clause handling.
      Enough for now...
      ca354d90
  14. 17 4月, 1998 1 次提交
  15. 14 4月, 1998 1 次提交
  16. 08 4月, 1998 1 次提交
    • T
      Prepare the EXTRACT() clause for supporting TIMEZONE_HOUR · 242b3478
      Thomas G. Lockhart 提交于
       and TIMEZONE_MINUTE but don't introduce until v6.4.
      Fix SET TIMEZONE LOCAL to pass null pointer
       rather than older "default" string.
      Fix handling of NULL pointer returns from FOREIGN KEY clauses
       which are currently ignored.
      Allow START as a table/column name.
      242b3478
  17. 31 3月, 1998 1 次提交
    • B
      I started adding the Having Clause and it works quite fine for · c579ce0f
      Bruce Momjian 提交于
      sequential scans! (I think it will also work with hash, index, etc
      but I did not check it out! I made some High level changes which
      should work for all access methods, but maybe I'm wrong. Please
      let me know.)
      
      Now it is possible to make queries like:
      
      select s.sname, max(p.pid), min(p.pid) from part p, supplier s
      where s.sid=p.sid group by s.sname having max(pid)=6 and min(pid)=1
      or avg(pid)=4;
      
      Having does not work yet for queries that contain a subselect
      statement in the Having clause, I'll try to fix this in the next
      days.
      
      If there are some bugs, please let me know, I'll start to read the
      mailinglists now!
      
      Now here is the patch against the original 6.3 version (no snapshot!!):
      
      Stefan
      c579ce0f
  18. 19 3月, 1998 1 次提交
    • T
      Allow parsing expressions with ") -" (scan.l, scan.c only). · 561aead3
      Thomas G. Lockhart 提交于
      Make "TABLE" optional in "LOCK TABLE" command
       and "... INTO TABLE..." clause.
      Explicitly parse CREATE SEQUENCE options to allow a negative integer
       as an argument; this is an artifact of unary minus handling in scan.l.
      Add "PASSWORD" as an allowed column identifier.
      These fixes will require a "make clean install" but not a dump/reload.
      561aead3
  19. 07 3月, 1998 1 次提交
  20. 25 2月, 1998 1 次提交
    • M
      From: Jan Wieck <jwieck@debis.com> · 780068f8
      Marc G. Fournier 提交于
          seems  that  my last post didn't make it through. That's good
          since  the  diff  itself  didn't  covered  the  renaming   of
          pg_user.h to pg_shadow.h and it's new content.
      
          Here  it's  again.  The  complete regression test passwd with
          only some  float  diffs.  createuser  and  destroyuser  work.
          pg_shadow cannot be read by ordinary user.
      780068f8
  21. 18 2月, 1998 2 次提交
  22. 13 2月, 1998 1 次提交
  23. 11 2月, 1998 2 次提交
    • T
      Try bumping to version two... · cad3c5d3
      Thomas G. Lockhart 提交于
      cad3c5d3
    • T
      Define ROW and STATEMENT as parser tokens. · 878b8d64
      Thomas G. Lockhart 提交于
      Use explicit tokens to decode CREATE TRIGGER clauses.
      Allow ROW and STATEMENT as column identifiers.
      Fix CAST syntax to require parens per SQL92 spec.
      Define TypeId to allow correct translation of type names in CREATE FUNCTION
       and other statements. Need to do this without looking up defined type
       names because CREATE FUNCTION can specify undefined (new) types.
      Define UserId to complete removal of "Id" generic entity.
      Define xlateSqlFunc() to convert SQL92 CHARACTER_LENGTH() and CHAR_LENGTH()
       functions to calls to length().
      Define func_name parser entity for contexts requiring a function name.
      Have xlateSqlType() translate "float" to "float8".
      878b8d64
  24. 10 2月, 1998 1 次提交
  25. 04 2月, 1998 3 次提交
  26. 03 2月, 1998 1 次提交
  27. 02 2月, 1998 1 次提交
  28. 25 1月, 1998 3 次提交
  29. 23 1月, 1998 1 次提交
  30. 20 1月, 1998 1 次提交