1. 01 Aug, 2003 5 commits
  2. 31 Jul, 2003 11 commits
  3. 30 Jul, 2003 7 commits
  4. 29 Jul, 2003 5 commits
    • Tom Lane's avatar
      Fix longstanding error in _bt_search(): should moveright at top of loop not · 892a51c3
      Tom Lane authored
      bottom.  Otherwise we fail to moveright when the root page was split while
      we were "in flight" to it.  This is not a significant problem when the root
      is above the leaf level, but if the root was also a leaf (ie, a single-page
      index just got split) we may return the wrong leaf page to the caller,
      resulting in failure to find a key that is in fact present.  Bug has existed
      at least since 7.1, probably forever.
      892a51c3
    • Tom Lane's avatar
      Coerce unknown-literal-constant default values to the column type during · 5e3c09a1
      Tom Lane authored
      CREATE TABLE (or ALTER TABLE SET DEFAULT), rather than postponing it to
      the time that the default is inserted into an INSERT command by the
      rewriter.  This reverses an old decision that was intended to make the
      world safe for writing
      	f1 timestamp default 'now'
      but in fact merely made the failure modes subtle rather than obvious.
      Per recent trouble report and followup discussion.
      
      initdb forced since there is a chance that stored default expressions
      will change.
      5e3c09a1
    • Tom Lane's avatar
      There is no reason to cast valuntil to timestamp, and a very good · f353f8e8
      Tom Lane authored
      reason not to: it fails for an 'invalid' abstime.  Per bug report
      of today's date.
      f353f8e8
    • Tom Lane's avatar
      a5e804df
    • Tom Lane's avatar
      Apply (a somewhat revised version of) Greg Mullane's patch to eliminate · 9c2a7c22
      Tom Lane authored
      heuristic determination of day vs month in date/time input.  Add the
      ability to specify that input is interpreted as yy-mm-dd order (which
      formerly worked, but only for yy greater than 31).  DateStyle's input
      component now has the preferred spellings DMY, MDY, or YMD; the older
      keywords European and US are now aliases for the first two of these.
      Per recent discussions on pgsql-general.
      9c2a7c22
  5. 28 Jul, 2003 7 commits
  6. 27 Jul, 2003 5 commits
    • Tom Lane's avatar
    • Bruce Momjian's avatar
      Updatge to skip composite types. · 606debf2
      Bruce Momjian authored
      606debf2
    • Bruce Momjian's avatar
      Tom, happier with the attached patch? · 440953e6
      Bruce Momjian authored
      I'd have to disagree with regards to the memory leaks not being worth
      a mention - any such leak can cause problems when the PostgreSQL
      installation is either unattended, long-living andor has very high
      connection levels. Half a kilobyte on start-up isn't negligible in
      this light.
      
      Regards, Lee.
      
      Tom Lane writes:
       > Lee Kindness <lkindness@csl.co.uk> writes:
       > > Guys, attached is a patch to fix two memory leaks on start-up.
       >
       > I do not like the changes to miscinit.c.  In the first place, it is not
       > a "memory leak" to do a one-time allocation of state for a proc_exit
       > function.  A bigger complaint is that your proposed change introduces
       > fragile coupling between CreateLockFile and its callers, in order to
       > save no resources worth mentioning.  More, it introduces an assumption
       > that the globals directoryLockFile and socketLockFile don't change while
       > the postmaster is running.  UnlinkLockFile should unlink the file that
       > it was originally told to unlink, regardless of what happens to those
       > globals.
       >
       > If you are intent on spending code to free stuff just before the
       > postmaster exits, a better fix would be for UnlinkLockFile to free its
       > string argument after using it.
      
      Lee Kindness
      440953e6
    • Bruce Momjian's avatar
      51e46d14
    • Tom Lane's avatar