Skip to content
Snippets Groups Projects
  1. Jan 05, 2001
    • Tom Lane's avatar
      Remove not-really-standard implementation of CREATE TABLE's UNDER clause, · 2fb6cc90
      Tom Lane authored
      and revert documentation to describe the existing INHERITS clause
      instead, per recent discussion in pghackers.  Also fix implementation
      of SQL_inheritance SET variable: it is not cool to look at this var
      during the initial parsing phase, only during parse_analyze().  See
      recent bug report concerning misinterpretation of date constants just
      after a SET TIMEZONE command.  gram.y really has to be an invariant
      transformation of the query string to a raw parsetree; anything that
      can vary with time must be done during parse analysis.
      2fb6cc90
  2. Jan 02, 2001
    • Tom Lane's avatar
      Clean up non-reentrant interface for hash_seq/HashTableWalk, so that · 1b8a219e
      Tom Lane authored
      starting a new hashtable search no longer clobbers any other search
      active anywhere in the system.  Fix RelationCacheInvalidate() so that
      it will not crash or go into an infinite loop if invoked recursively,
      as for example by a second SI Reset message arriving while we are still
      processing a prior one.
      1b8a219e
  3. Dec 31, 2000
  4. Dec 30, 2000
  5. Dec 29, 2000
  6. Dec 28, 2000
  7. Dec 23, 2000
  8. Dec 22, 2000
    • Tom Lane's avatar
      Repair not-too-well-thought-out code to do rangechecking of OIDs on · 0db1a951
      Tom Lane authored
      64-bit machines.  Also, make oidvectorin use the same code as oidin.
      0db1a951
    • Tom Lane's avatar
      Change default output formatting for CIDR to be unabbreviated, per · 61784c54
      Tom Lane authored
      recommendation from Paul Vixie.  Add a new abbrev() function to produce
      abbreviated format as text.  No forced initdb, but new function is not
      available unless you do an initdb or add the pg_proc row manually.
      61784c54
    • Tom Lane's avatar
      Revise lock manager to support "session level" locks as well as "transaction · 6cc842ab
      Tom Lane authored
      level" locks.  A session lock is not released at transaction commit (but it
      is released on transaction abort, to ensure recovery after an elog(ERROR)).
      In VACUUM, use a session lock to protect the master table while vacuuming a
      TOAST table, so that the TOAST table can be done in an independent
      transaction.
      
      I also took this opportunity to do some cleanup and renaming in the lock
      code.  The previously noted bug in ProcLockWakeup, that it couldn't wake up
      any waiters beyond the first non-wakeable waiter, is now fixed.  Also found
      a previously unknown bug of the same kind (failure to scan all members of
      a lock queue in some cases) in DeadLockCheck.  This might have led to failure
      to detect a deadlock condition, resulting in indefinite waits, but it's
      difficult to characterize the conditions required to trigger a failure.
      6cc842ab
  9. Dec 21, 2000
  10. Dec 18, 2000
    • Bruce Momjian's avatar
      >> Here is a patch for the beos port (All regression tests are OK). · 1f159e56
      Bruce Momjian authored
      >>     xlog.c : special case for beos to avoid 'link' which does not work yet
      >>     beos/sem.c : implementation of new sem_ctl call (GETPID) and a new
      >sem_op
      >> flag (IPCNOWAIT)
      >>     dynloader/beos.c : add a verification of symbol validity (seem that
      the
      >> loader sometime return OK with an invalid symbol)
      >>     postmaster.c :  add beos forking support for the new checkpoint
      process
      >>     postgres.c : remove beos special case for getrusage
      >>     beos.h : Correction of a bas definition of AF_UNIX, misc defnitions
      >>
      >>
      >>     thanks
      >>
      >>
      >>             cyril
      
      Cyril VELTER
      1f159e56
    • Tom Lane's avatar
      Clean up backend-exit-time cleanup behavior. Use on_shmem_exit callbacks · a626b78c
      Tom Lane authored
      to ensure that we have released buffer refcounts and so forth, rather than
      putting ad-hoc operations before (some of the calls to) proc_exit.  Add
      commentary to discourage future hackers from repeating that mistake.
      a626b78c
  11. Dec 15, 2000
  12. Dec 14, 2000
    • Tom Lane's avatar
      Planner speedup hacking. Avoid saving useless pathkeys, so that path · ea166f11
      Tom Lane authored
      comparison does not consider paths different when they differ only in
      uninteresting aspects of sort order.  (We had a special case of this
      consideration for indexscans already, but generalize it to apply to
      ordered join paths too.)  Be stricter about what is a canonical pathkey
      to allow faster pathkey comparison.  Cache canonical pathkeys and
      dispersion stats for left and right sides of a RestrictInfo's clause,
      to avoid repeated computation.  Total speedup will depend on number of
      tables in a query, but I see about 4x speedup of planning phase for
      a sample seven-table query.
      ea166f11
  13. Dec 13, 2000
  14. Dec 11, 2000
  15. Dec 10, 2000
  16. Dec 09, 2000
    • Tom Lane's avatar
      Repair erroneous use of hashvarlena() for MACADDR, which is not a · 376784cf
      Tom Lane authored
      varlena type.  (I did not force initdb, but you won't see the fix
      unless you do one.)  Also, make sure all index support operators and
      functions are careful not to leak memory for toasted inputs; I had
      missed some hash and rtree support ops on this point before.
      376784cf
  17. Dec 08, 2000
  18. Dec 07, 2000
    • Tom Lane's avatar
      Make OVERLAPS operators conform to SQL92 spec regarding NULL handling. · 821f4673
      Tom Lane authored
      As I read it, the spec requires a non-null result in some cases where
      one of the inputs is NULL: specifically, if the other endpoint of that
      interval is between the endpoints of the other interval, then the result
      is known TRUE despite the missing endpoint.  The spec could've been a
      lot simpler if they did not intend this behavior.
      I did not force an initdb for this change, but if you don't do one you'll
      still see the old strict-function behavior.
      821f4673
    • Tom Lane's avatar
      Clean up handling of FOR UPDATE inside views and subselects ... make it · 73d2a359
      Tom Lane authored
      work where we can (given that the executor only handles it at top level)
      and generate an error where we can't.  Note that while the parser has
      been allowing views to say SELECT FOR UPDATE for a few weeks now, that
      hasn't actually worked until just now.
      73d2a359
  19. Dec 06, 2000
  20. Dec 05, 2000
    • Tom Lane's avatar
      Repair breakage of rules containing INSERT ... SELECT actions, per bug · a51f004d
      Tom Lane authored
      report from Joel Burton.  Turns out that my simple idea of turning the
      SELECT into a subquery does not interact well *at all* with the way the
      rule rewriter works.  Really what we need to make INSERT ... SELECT work
      cleanly is to decouple targetlists from rangetables: an INSERT ... SELECT
      wants to have two levels of targetlist but only one rangetable.  No time
      for that for 7.1, however, so I've inserted some ugly hacks to make the
      rewriter know explicitly about the structure of INSERT ... SELECT queries.
      Ugh :-(
      a51f004d
  21. Dec 03, 2000
  22. Dec 02, 2000
    • Tom Lane's avatar
      Don't cause --enable-cassert to define COPY_PARSE_PLAN_TREES automatically · 079c60ab
      Tom Lane authored
      anymore.  That won't teach us anything new for the rest of this release
      cycle, so it seems better to keep the --assert environment more like the
      non-assert environment for beta.
      I'm going to leave CLOBBER_FREED_MEMORY and MEMORY_CONTEXT_CHECKING
      turned on by --enable-cassert for now, however.
      079c60ab
  23. Dec 01, 2000
  24. Nov 30, 2000
Loading