1. 16 Aug, 2005 1 commit
  2. 26 Jun, 2005 2 commits
    • Tom Lane's avatar
      Code review for escape-strings patch. Sync psql and plpgsql lexers · d395aecf
      Tom Lane authored
      with main, avoid using a SQL-defined SQLSTATE for what is most definitely
      not a SQL-compatible error condition, fix documentation omissions,
      adhere to message style guidelines, don't use two GUC_REPORT variables
      when one is sufficient.  Nothing done about pg_dump issues.
      d395aecf
    • Bruce Momjian's avatar
      Add E'' syntax so eventually normal strings can treat backslashes · bb3cce4e
      Bruce Momjian authored
      literally.
      
      Add GUC variables:
      
              "escape_string_warning" - warn about backslashes in non-E strings
              "escape_string_syntax" - supports E'' syntax?
              "standard_compliant_strings" - treats backslashes literally in ''
      
      Update code to use E'' when escapes are used.
      bb3cce4e
  3. 15 Jun, 2005 1 commit
  4. 02 Jun, 2005 2 commits
  5. 26 May, 2005 1 commit
    • Tom Lane's avatar
      Tweak the backend scanner (and psqlscan.l, which must track the backend · 15e4d1e2
      Tom Lane authored
      scanner anyway) to avoid having any backup states.  According to the
      flex manual, this should speed things up, and indeed the backend scanner
      is about a third faster according to some quick profiling checks.
      I haven't tried to measure the speed change in psql, but it probably
      is similar.
      15e4d1e2
  6. 11 Mar, 2005 1 commit
    • Bruce Momjian's avatar
      Add fprintf() custom version to libpgport. · caad817d
      Bruce Momjian authored
      Document use of macros for pg_printf functions.
      
      Bump major versions of all interfaces to handle movement of get_progname
      from libpq to libpgport in 8.0, and probably other libpgport changes in 8.1.
      caad817d
  7. 22 Feb, 2005 1 commit
  8. 31 Dec, 2004 1 commit
    • PostgreSQL Daemon's avatar
      Tag appropriate files for rc3 · 2ff50159
      PostgreSQL Daemon authored
      Also performed an initial run through of upgrading our Copyright date to
      extend to 2005 ... first run here was very simple ... change everything
      where: grep 1996-2004 && the word 'Copyright' ... scanned through the
      generated list with 'less' first, and after, to make sure that I only
      picked up the right entries ...
      2ff50159
  9. 09 Sep, 2004 1 commit
  10. 29 Aug, 2004 1 commit
  11. 28 Jun, 2004 1 commit
  12. 24 Feb, 2004 1 commit
  13. 21 Feb, 2004 1 commit
  14. 19 Feb, 2004 1 commit
  15. 29 Nov, 2003 1 commit
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  16. 09 Oct, 2003 1 commit
  17. 04 Aug, 2003 1 commit
  18. 18 Jul, 2003 1 commit
  19. 19 Jun, 2003 1 commit
    • Tom Lane's avatar
      Disallow dollar sign in operator names, instead allow it as a non-first · 1bd22f55
      Tom Lane authored
      character in identifiers.  The first change eliminates the current need
      to put spaces around parameter references, as in "x<=$2".  The second
      change improves compatibility with Oracle and some other RDBMSes.  This
      was discussed and agreed to back in January, but did not get done.
      1bd22f55
  20. 29 May, 2003 2 commits
  21. 27 Apr, 2003 1 commit
    • Tom Lane's avatar
      Put back encoding-conversion step in processing of incoming queries; · 982430f8
      Tom Lane authored
      I had inadvertently omitted it while rearranging things to support
      length-counted incoming messages.  Also, change the parser's API back
      to accepting a 'char *' query string instead of 'StringInfo', as the
      latter wasn't buying us anything except overhead.  (I think when I put
      it in I had some notion of making the parser API 8-bit-clean, but
      seeing that flex depends on null-terminated input, that's not really
      ever gonna happen.)
      982430f8
  22. 24 Apr, 2003 1 commit
    • Tom Lane's avatar
      Infrastructure for upgraded error reporting mechanism. elog.c is · f690920a
      Tom Lane authored
      rewritten and the protocol is changed, but most elog calls are still
      elog calls.  Also, we need to contemplate mechanisms for controlling
      all this functionality --- eg, how much stuff should appear in the
      postmaster log?  And what API should libpq expose for it?
      f690920a
  23. 11 Nov, 2002 1 commit
  24. 04 Nov, 2002 1 commit
  25. 29 Aug, 2002 1 commit
  26. 18 Aug, 2002 1 commit
  27. 17 Aug, 2002 1 commit
    • Bruce Momjian's avatar
      In that case, attached is a patch which locates the beginning of the · 54124240
      Bruce Momjian authored
      offending token more efficiently (per your suggestion of using
      scanbuf). The new patch does the same as before:
      
      template1=# select * frum pg_class;
      ERROR:  parser: parse error at or near "frum" at character 10
      
      It also implement's Tom's suggestion:
      
      template1=# select * from pg_class where\g
      ERROR:  parse: parse error at end of input
      
      Gavin Sherry
      54124240
  28. 04 Aug, 2002 1 commit
    • Thomas G. Lockhart's avatar
      Implement hex literal conversion to bit string literal. · 043f9eb9
      Thomas G. Lockhart authored
       May not be the long-term solution (some continuing discussion with
       Peter E.) but better than the current mapping of a conversion to integer
       which I'd put in years ago before we had any bit string types at all.
      This is already supported in the bit string implementation elsewhere.
      043f9eb9
  29. 22 Jun, 2002 1 commit
    • Thomas G. Lockhart's avatar
      Implement SQL99 CREATE CAST and DROP CAST statements. · 90edb265
      Thomas G. Lockhart authored
       Also implement alternative forms to expose the PostgreSQL CREATE FUNCTION
       features.
      Implement syntax for READ ONLY and READ WRITE clauses in SET TRANSACTION.
       READ WRITE is already implemented (of course).
      Implement syntax for "LIKE table" clause in CREATE TABLE. Should be fairly
       easy to complete since it resembles SELECT INTO.
      Implement MATCH SIMPLE clause for foreign key definitions. This is explicit
       SQL99 syntax for the default behavior, so we now support it :)
      Start implementation of shorthand for national character literals in
       scanner. For now, just swallow the leading "N", but sometime soon let's
       figure out how to pass leading type info from the scanner to the parser.
       We should use the same technique for binary and hex bit string literals,
       though it might be unusual to have two apparently independent literal
       types fold into the same storage type.
      90edb265
  30. 20 Jun, 2002 1 commit
  31. 11 Jun, 2002 1 commit
    • Thomas G. Lockhart's avatar
      Implement SQL99 OVERLAY(). Allows substitution of a substring in a string. · ea01a451
      Thomas G. Lockhart authored
      Implement SQL99 SIMILAR TO as a synonym for our existing operator "~".
      Implement SQL99 regular expression SUBSTRING(string FROM pat FOR escape).
       Extend the definition to make the FOR clause optional.
       Define textregexsubstr() to actually implement this feature.
      Update the regression test to include these new string features.
       All tests pass.
      Rename the regular expression support routines from "pg95_xxx" to "pg_xxx".
      Define CREATE CHARACTER SET in the parser per SQL99. No implementation yet.
      ea01a451
  32. 02 May, 2002 1 commit
  33. 01 May, 2002 1 commit
    • Tom Lane's avatar
      Improve lexer's error reporting. You get the whole token mentioned now · 61446e09
      Tom Lane authored
      in parse error messages, not just the part scanned by the last flex rule.
      For example,
      	select "foo" "bar";
      used to draw
      	ERROR:  parser: parse error at or near """
      which was rather unhelpful.  Now it gives
      	ERROR:  parser: parse error at or near ""bar""
      Also, error messages concerning bitstring literals and suchlike will
      quote the source text at you, not the processed internal form of the literal.
      61446e09
  34. 20 Apr, 2002 1 commit
    • Peter Eisentraut's avatar
      Scanner performance improvements · 32c6c99e
      Peter Eisentraut authored
      Use flex flags -CF.  Pass the to-be-scanned string around as StringInfo
      type, to avoid querying the length repeatedly.  Clean up some code and
      remove lex-compatibility cruft.  Escape backslash sequences inline.  Use
      flex-provided yy_scan_buffer() function to set up input, rather than using
      myinput().
      32c6c99e
  35. 06 Mar, 2002 1 commit
    • Bruce Momjian's avatar
      Change made to elog: · 92288a1c
      Bruce Momjian authored
      o  Change all current CVS messages of NOTICE to WARNING.  We were going
      to do this just before 7.3 beta but it has to be done now, as you will
      see below.
      
      o Change current INFO messages that should be controlled by
      client_min_messages to NOTICE.
      
      o Force remaining INFO messages, like from EXPLAIN, VACUUM VERBOSE, etc.
      to always go to the client.
      
      o Remove INFO from the client_min_messages options and add NOTICE.
      
      Seems we do need three non-ERROR elog levels to handle the various
      behaviors we need for these messages.
      
      Regression passed.
      92288a1c
  36. 07 Sep, 2001 1 commit
  37. 04 Sep, 2001 1 commit