1. 07 Apr, 2000 1 commit
    • Thomas G. Lockhart's avatar
      Add transcendental math functions (sine, cosine, etc) · a349733b
      Thomas G. Lockhart authored
      Add a random number generator and seed setter (random(), SET SEED)
      Fix up the interval*float8 math to carry partial months
       into the time field.
      Add float8*interval so we have symmetry in the available math.
      Fix the parser and define.c to accept SQL92 types as field arguments.
      Fix the parser to accept SQL92 types for CREATE TYPE, etc. This is
       necessary to allow...
      Bit/varbit support in contrib/bit cleaned up to compile and load
       cleanly. Still needs some work before final release.
      Implement the "SOME" keyword as a synonym for "ANY" per SQL92.
      Implement ascii(text), ichar(int4), repeat(text,int4) to help
       support the ODBC driver.
      Enable the TRUNCATE() function mapping in the ODBC driver.
      a349733b
  2. 31 Mar, 2000 1 commit
  3. 30 Mar, 2000 1 commit
  4. 27 Mar, 2000 1 commit
  5. 24 Mar, 2000 1 commit
    • Tom Lane's avatar
      transformCreateStmt should put Ident nodes, not ColumnDef nodes, into · 5c462bae
      Tom Lane authored
      keys lists of Constraint nodes.  This eliminates a type pun that would
      probably have caused trouble someday, and eliminates circular references
      in the parsetree that were causing trouble now.
      Also, change parser's uses of strcasecmp() to strcmp().  Since scan.l
      has downcased any unquoted identifier, it is never correct to check an
      identifier with strcasecmp() in the parser.  For example,
      	CREATE TABLE FOO (f1 int, UNIQUE("F1"));
      was accepted, which is wrong, and xlateSqlFunc did more than it should:
      select datetime();
      ERROR:  Function 'timestamp()' does not exist
      (good)
      select "DateTime"();
      ERROR:  Function 'timestamp()' does not exist
      (bad)
      5c462bae
  6. 21 Mar, 2000 1 commit
  7. 20 Mar, 2000 2 commits
  8. 18 Mar, 2000 2 commits
  9. 15 Mar, 2000 1 commit
  10. 14 Mar, 2000 1 commit
    • Thomas G. Lockhart's avatar
      Implement column aliases on views "CREATE VIEW name (collist)". · 64568100
      Thomas G. Lockhart authored
      Implement TIME WITH TIME ZONE type (timetz internal type).
      Remap length() for character strings to CHAR_LENGTH() for SQL92
       and to remove the ambiguity with geometric length() functions.
      Keep length() for character strings for backward compatibility.
      Shrink stored views by removing internal column name list from visible rte.
      Implement min(), max() for time and timetz data types.
      Implement conversion of TIME to INTERVAL.
      Implement abs(), mod(), fac() for the int8 data type.
      Rename some math functions to generic names:
       round(), sqrt(), cbrt(), pow(), etc.
      Rename NUMERIC power() function to pow().
      Fix int2 factorial to calculate result in int4.
      Enhance the Oracle compatibility function translate() to work with string
       arguments (from Edwin Ramirez).
      Modify pg_proc system table to remove OID holes.
      64568100
  11. 12 Mar, 2000 2 commits
  12. 01 Mar, 2000 1 commit
  13. 26 Feb, 2000 1 commit
  14. 24 Feb, 2000 2 commits
  15. 22 Feb, 2000 1 commit
  16. 21 Feb, 2000 1 commit
    • Tom Lane's avatar
      Change parse-time representation of float literals (which include oversize · 393f3132
      Tom Lane authored
      integers) to be strings instead of 'double'.  We convert from string form
      to internal representation only after type resolution has determined the
      correct type for the constant.  This eliminates loss-of-precision worries
      and gets rid of the change in behavior seen at 17 digits with the
      previous kluge.
      393f3132
  17. 20 Feb, 2000 1 commit
  18. 19 Feb, 2000 2 commits
  19. 18 Feb, 2000 1 commit
  20. 16 Feb, 2000 1 commit
    • Thomas G. Lockhart's avatar
      Implement "date/time grand unification". · 41f1f5b7
      Thomas G. Lockhart authored
       Transform datetime and timespan into timestamp and interval.
       Deprecate datetime and timespan, though translate to new types in gram.y.
       Transform all datetime and timespan catalog entries into new types.
       Make "INTERVAL" reserved word allowed as a column identifier in gram.y.
       Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility
        routines for all date/time types.
       date.{h,c} now deals with date, time types.
       timestamp.{h,c} now deals with timestamp, interval types.
       nabstime.{h,c} now deals with abstime, reltime, tinterval types.
      Make NUMERIC a known native type for purposes of type coersion. Not tested.
      41f1f5b7
  21. 15 Feb, 2000 1 commit
    • Thomas G. Lockhart's avatar
      Add "DEC" as synonym for "DECIMAL". · 5c4b2b23
      Thomas G. Lockhart authored
      Add "SESSION_USER" as SQL92 keyword; equivalent to CURRENT_USER for now.
      Implement column aliases (aka correlation names) and more join syntax.
      Fix up indenting and tabbing.
      5c4b2b23
  22. 07 Feb, 2000 2 commits
  23. 04 Feb, 2000 1 commit
  24. 02 Feb, 2000 1 commit
  25. 29 Jan, 2000 1 commit
    • Peter Eisentraut's avatar
      A few minor psql enhancements · 2b84cbb6
      Peter Eisentraut authored
      Initdb help correction
      Changed end/abort to commit/rollback and changed related notices
      Commented out way old printing functions in libpq
      Fixed a typo in alter table / alter column
      2b84cbb6
  26. 27 Jan, 2000 1 commit
    • Tom Lane's avatar
      Redesign DISTINCT ON as discussed in pgsql-sql 1/25/00: syntax is now · dd979f66
      Tom Lane authored
      SELECT DISTINCT ON (expr [, expr ...]) targetlist ...
      and there is a check to make sure that the user didn't specify an ORDER BY
      that's incompatible with the DISTINCT operation.
      Reimplement nodeUnique and nodeGroup to use the proper datatype-specific
      equality function for each column being compared --- they used to do
      bitwise comparisons or convert the data to text strings and strcmp().
      (To add insult to injury, they'd look up the conversion functions once
      for each tuple...)  Parse/plan representation of DISTINCT is now a list
      of SortClause nodes.
      initdb forced by querytree change...
      dd979f66
  27. 26 Jan, 2000 1 commit
    • Bruce Momjian's avatar
      Add: · 5c25d602
      Bruce Momjian authored
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  28. 23 Jan, 2000 1 commit
  29. 22 Jan, 2000 1 commit
  30. 20 Jan, 2000 1 commit
    • Tom Lane's avatar
      Assign a typmod of -1 to unadorned CHAR and NUMERIC type specs. This · 7476e371
      Tom Lane authored
      allows casts without specific length requirements to continue to work
      as they did before; that is, x::char will not truncate the value of x,
      whereas x::char(1) will.  Likewise for NUMERIC precision/scale.
      The column length defaults of char(1) and numeric(30,6) are now inserted
      in analyze.c's processing of CREATE TABLE.
      7476e371
  31. 18 Jan, 2000 3 commits
  32. 17 Jan, 2000 1 commit