1. 05 Sep, 2002 1 commit
  2. 04 Sep, 2002 1 commit
  3. 02 Sep, 2002 1 commit
    • Tom Lane's avatar
      Code review for HeapTupleHeader changes. Add version number to page headers · c7a165ad
      Tom Lane authored
      (overlaying low byte of page size) and add HEAP_HASOID bit to t_infomask,
      per earlier discussion.  Simplify scheme for overlaying fields in tuple
      header (no need for cmax to live in more than one place).  Don't try to
      clear infomask status bits in tqual.c --- not safe to do it there.  Don't
      try to force output table of a SELECT INTO to have OIDs, either.  Get rid
      of unnecessarily complex three-state scheme for TupleDesc.tdhasoids, which
      has already caused one recent failure.  Improve documentation.
      c7a165ad
  4. 29 Aug, 2002 1 commit
  5. 20 Aug, 2002 1 commit
  6. 13 Aug, 2002 1 commit
  7. 31 Jul, 2002 1 commit
    • Tom Lane's avatar
      Instead of having a configure-time DEFAULT_ATTSTATTARGET, store -1 in · ce7565ab
      Tom Lane authored
      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
  8. 20 Jul, 2002 1 commit
    • Bruce Momjian's avatar
      oid is needed, it is added at the end of the struct (after the null · b0f5086e
      Bruce Momjian authored
      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
  9. 05 May, 2002 1 commit
  10. 21 Apr, 2002 2 commits
    • Thomas G. Lockhart's avatar
      Support alternate storage scheme of 64-bit integer for date/time types. · 547df0cc
      Thomas G. Lockhart authored
       Use "--enable-integer-datetimes" in configuration to use this rather
       than the original float8 storage. I would recommend the integer-based
       storage for any platform on which it is available. We perhaps should
       make this the default for the production release.
      Change timezone(timestamptz) results to return timestamp rather than
       a character string. Formerly, we didn't have a way to represent
       timestamps with an explicit time zone other than freezing the info into
       a string. Now, we can reasonably omit the explicit time zone from the
       result and return a timestamp with values appropriate for the specified
       time zone. Much cleaner, and if you need the time zone in the result
       you can put it into a character string pretty easily anyway.
      Allow fractional seconds in date/time types even for dates prior to 1BC.
      Limit timestamp data types to 6 decimal places of precision. Just right
       for a micro-second storage of int8 date/time types, and reduces the
       number of places ad-hoc rounding was occuring for the float8-based types.
      Use lookup tables for precision/rounding calculations for timestamp and
       interval types.  Formerly used pow() to calculate the desired value but
       with a more limited range there is no reason to not type in a lookup
       table. Should be *much* better performance, though formerly there were
       some optimizations to help minimize the number of times pow() was called.
      Define a HAVE_INT64_TIMESTAMP variable. Based on the configure option
       "--enable-integer-datetimes" and the existing internal INT64_IS_BUSTED.
      Add explicit date/interval operators and functions for addition and
       subtraction. Formerly relied on implicit type promotion from date to
       timestamp with time zone.
      Change timezone conversion functions for the timetz type from "timetz()"
       to "timezone()". This is consistant with other time zone coersion
       functions for other types.
      Bump the catalog version to 200204201.
      Fix up regression tests to reflect changes in fractional seconds
       representation for date/times in BC eras.
      All regression tests pass on my Linux box.
      547df0cc
    • Tatsuo Ishii's avatar
      Remove --enable-syslog option · ad201b8d
      Tatsuo Ishii authored
      ad201b8d
  11. 10 Apr, 2002 1 commit
  12. 03 Apr, 2002 1 commit
  13. 29 Mar, 2002 1 commit
  14. 25 Feb, 2002 1 commit
  15. 23 Feb, 2002 1 commit
  16. 22 Jan, 2002 1 commit
  17. 03 Dec, 2001 1 commit
  18. 02 Dec, 2001 1 commit
  19. 15 Nov, 2001 2 commits
  20. 20 Oct, 2001 1 commit
  21. 19 Oct, 2001 1 commit
  22. 13 Oct, 2001 1 commit
  23. 01 Oct, 2001 1 commit
    • Bruce Momjian's avatar
      > > > > > - PostgreSQL requires to be compiled with --enable-multibyte · 03489512
      Bruce Momjian authored
      > > > > >   and --enable-unicode-convertion if it ought to work correctly
      > > > > >   with Tcl/Tk >= 8.1 (client or server side).
      > > > > >
      > > > > > - PL/Tcl needs to be changed to use pg_do_encoding_conversion
      > > > > >   if it runs on a Tcl version >= 8.1 .
      > > >
      > > > > I'll do pl/tcl part in the next version of patch. Using this approach we
      > > > > can eliminate overhead for databases in UNICODE.
      > > >
      > > > Any progress on this?  I'd prefer to get rid of this --enable-pltcl-utf
      > > > option before release.
      > >
      > > Done
      > >
      > > Next version removes --enable-pltcl-utf switch and enables embedded
      > > utf conversion of pgsql if tcl version >=8.1 and --enable-unicode-conversion
      03489512
  24. 22 Sep, 2001 1 commit
    • Peter Eisentraut's avatar
      Provide some initial support for building the ODBC driver for · 364a7ebe
      Peter Eisentraut authored
      an already installed iODBC or unixODBC driver manager.  In particular,
      use the include files provided by the driver manager over our own,
      and use the odbcinst library of the driver manager rather than gpps.c.
      
      Migrate portability sections common to several files into psqlodbc.h.
      364a7ebe
  25. 14 Sep, 2001 1 commit
  26. 07 Sep, 2001 2 commits
  27. 06 Sep, 2001 2 commits
    • Bruce Momjian's avatar
      PAM authentication: · 04c1f729
      Bruce Momjian authored
      > pam_strerror() should be used a few more times, rather than just saying
      > "Error!".  Also, the configure.in snippet seems wrong.  You add
      > -I$pam_prefix/include/security to $INCLUDES and then you #include
      > <security/pam_appl.h>.  This whole thing is probably unnecessary, since
      > PAM is a system library on the systems where it exists, so the headers
      > and libraries are found automatically, unlike OpenSSL and
      > Kerberos.
      
      See attached revised patch. (I'm sure the configure.in stuff can be done
      right/better, I'm just not enough of a autoconf guru to know what to
      change it to.)
      
      Dominic J. Eidson
      04c1f729
    • Bruce Momjian's avatar
      Next version of patch. · 16910e44
      Bruce Momjian authored
      Now with documentation update and disabling of UTF conversion for Tcl <=8.0
      
      On Fri, 24 Aug 2001, Vsevolod Lobko wrote:
      
      > On Thu, 23 Aug 2001, Tom Lane wrote:
      >
      > > > Is this looks better?
      > >
      > > It does, but one small gripe: the lack of semicolons will probably cause
      > > pg_indent to mess up the indentation.  (I know emacs' autoindent mode
      > > will not work nicely with it, either.)  Please set up the macros so that
      > > you write
      > >
      > >                         UTF_BEGIN;
      > >                         Tcl_DStringAppend(&unknown_src, UTF_E2U(part), -1);
      > >                         UTF_END;
      > >
      > > and then I'll be happy.
      >
      > Attached revised patch
      >
      > > Your point about overhead is a good one, so I retract the gripe about
      > > using a configure switch.  But please include documentation patches to
      > > describe the configure option in the administrator's guide (installation
      > > section).
      >
      > This patch still uses configure switch for enabling feature.
      >
      > For enabling based on tcl version we have 2 posibilites:
      >  1) having feature enabled by default, but in pltcl.c check for tcl
      >     version and disable it for old versions
      >  2) enable or disable at configure time based on tcl version, but there
      >     are problem - current configure don't checks for tcl version at all
      >     and my configure skills not enought for adding this
      >
      
      Vsevolod Lobko
      16910e44
  28. 24 Aug, 2001 1 commit
  29. 01 Aug, 2001 2 commits
  30. 16 Jul, 2001 1 commit
  31. 11 Jul, 2001 1 commit
  32. 11 Jun, 2001 1 commit
    • Bruce Momjian's avatar
      The attached patch enables PostgreSQL CVS to build cleanly under Cygwin · 92f45065
      Bruce Momjian authored
      when built against readline 4.2.  Specifically, it handles the deprecation
      of
      
          filename_completion_function()
      
      with preference for
      
          rl_filename_completion_function()
      
      Although, I was motivated by Cygwin support, IMO this patch is appropriate
      for all platforms.  To quote from the readline source:
      
          #if 0
          /* Backwards compatibility (compat.c).  These will go away sometime. */
          ...
          extern READLINE_EXPORT(char, *filename_completion_function) ...
          #endif
      
      Note that this patch is modeled after the one by Peter Eisentraut for
      completion_matches():
      
          http://www.ca.postgresql.org/~petere/readline42.html
      I tested this patch under the following environments:
      
          Cygwin with readline 4.1
          Cygwin with readline 4.2
          Linux with readline 2.2.1
          Linux with readline 4.2
      
      and it behaved as expected.
      
      Jason Tishler
      92f45065
  33. 02 Jun, 2001 1 commit
    • Peter Eisentraut's avatar
      Native Language Support (NLS) · e5420364
      Peter Eisentraut authored
      Use --enable-nls to turn it on; see installation instructions for details.
      See developer's guide how to make use of it in programs and how to add
      translations.
      
      psql sources have been almost fully prepared and an incomplete German
      translation has been provided.  In the backend, only elog() calls are
      currently translatable, and the provided German translation file is more
      of a placeholder.
      e5420364
  34. 11 May, 2001 1 commit
  35. 07 May, 2001 1 commit
    • Tom Lane's avatar
      Rewrite of planner statistics-gathering code. ANALYZE is now available as · f905d65e
      Tom Lane authored
      a separate statement (though it can still be invoked as part of VACUUM, too).
      pg_statistic redesigned to be more flexible about what statistics are
      stored.  ANALYZE now collects a list of several of the most common values,
      not just one, plus a histogram (not just the min and max values).  Random
      sampling is used to make the process reasonably fast even on very large
      tables.  The number of values and histogram bins collected is now
      user-settable via an ALTER TABLE command.
      
      There is more still to do; the new stats are not being used everywhere
      they could be in the planner.  But the remaining changes for this project
      should be localized, and the behavior is already better than before.
      
      A not-very-related change is that sorting now makes use of btree comparison
      routines if it can find one, rather than invoking '<' twice.
      f905d65e