1. 24 9月, 1999 6 次提交
    • H
      · 95d3d468
      Hiroshi Inoue 提交于
      This is a patch for cygipc library provided by Yutaka Tanida.
      This is necessary to prevent freezing in cygwin port.
      95d3d468
    • T
      Several changes here, not very related but touching some of the same files. · e812458b
      Tom Lane 提交于
      * Buffer refcount cleanup (per my "progress report" to pghackers, 9/22).
      * Add links to backend PROC structs to sinval's array of per-backend info,
      and use these links for routines that need to check the state of all
      backends (rather than the slow, complicated search of the ShmemIndex
      hashtable that was used before).  Add databaseOID to PROC structs.
      * Use this to implement an interlock that prevents DESTROY DATABASE of
      a database containing running backends.  (It's a little tricky to prevent
      a concurrently-starting backend from getting in there, since the new
      backend is not able to lock anything at the time it tries to look up
      its database in pg_database.  My solution is to recheck that the DB is
      OK at the end of InitPostgres.  It may not be a 100% solution, but it's
      a lot better than no interlock at all...)
      * In ALTER TABLE RENAME, flush buffers for the relation before doing the
      rename of the physical files, to ensure we don't get failures later from
      mdblindwrt().
      * Update TRUNCATE patch so that it actually compiles against current
      sources :-(.
      You should do "make clean all" after pulling these changes.
      e812458b
    • B
      One last missing quoting bug in pg_dump: · f6639351
      Bruce Momjian 提交于
      now that sequence names are properly quoted for field defaults, mixed
      case sequence names are generated. These are properly quoted in the
      CREATE SEQUENCE lines, but not in the SELECT nextval lines, as per
      below:
      
      CREATE SEQUENCE "Teams_TeamID_seq" start 10 increment 1 maxvalue
      2147483647 minvalue 1  cache 1 ;
      SELECT nextval ('Teams_TeamID_seq');
      
      This needs to be:
      SELECT nextval ('"Teams_TeamID_seq"');
      
      Patch included below.
      --
      Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
      f6639351
    • B
      Fix for netmask('x.x.x.x/0') is 255.255.255.255 instead of 0.0.0.0 · dabc3f31
      Bruce Momjian 提交于
      This is because (-1) << 32 is -1 (Only intel arc. has been checked)
      
      Oleg Sharoiko
      dabc3f31
    • B
      337ab803
    • B
      e7cad7b0
  2. 22 9月, 1999 3 次提交
  3. 21 9月, 1999 6 次提交
  4. 20 9月, 1999 2 次提交
  5. 19 9月, 1999 3 次提交
    • T
      Fix CASE bug identified by Keith Parks: CASE didn't reliably · e1a8b0f2
      Tom Lane 提交于
      treat a NULL condition result as FALSE.  Clean up some bogus comments
      here and there, too.
      e1a8b0f2
    • T
      Update regress test expected outputs for small changes in · f9f5dfbf
      Tom Lane 提交于
      error message wording, due to most cases of no-such-relation now being
      detected in central heap_open code rather than on an ad-hoc basis.
      f9f5dfbf
    • T
      Mega-commit to make heap_open/heap_openr/heap_close take an · bd272cac
      Tom Lane 提交于
      additional argument specifying the kind of lock to acquire/release (or
      'NoLock' to do no lock processing).  Ensure that all relations are locked
      with some appropriate lock level before being examined --- this ensures
      that relevant shared-inval messages have been processed and should prevent
      problems caused by concurrent VACUUM.  Fix several bugs having to do with
      mismatched increment/decrement of relation ref count and mismatched
      heap_open/close (which amounts to the same thing).  A bogus ref count on
      a relation doesn't matter much *unless* a SI Inval message happens to
      arrive at the wrong time, which is probably why we got away with this
      sloppiness for so long.  Repair missing grab of AccessExclusiveLock in
      DROP TABLE, ALTER/RENAME TABLE, etc, as noted by Hiroshi.
      Recommend 'make clean all' after pulling this update; I modified the
      Relation struct layout slightly.
      Will post further discussion to pghackers list shortly.
      bd272cac
  6. 18 9月, 1999 1 次提交
  7. 17 9月, 1999 1 次提交
  8. 16 9月, 1999 4 次提交
  9. 15 9月, 1999 2 次提交
  10. 14 9月, 1999 2 次提交
  11. 13 9月, 1999 6 次提交
    • T
      Allow CASE statement to contain *only* untyped result clauses or nulls. · f0f73b31
      Thomas G. Lockhart 提交于
       Almost worked before, but forgot one place to check.
       Reported by Tatsuo Ishii.
      Still does not do the right thing if inserting into a non-string target
       column. Should look for a type coersion later, but doesn't.
      f0f73b31
    • T
      Patch to cure O(N^2) behavior in libpq when reading a long · 3ec52323
      Tom Lane 提交于
      message under a kernel that only returns one packet per recv() call.  This
      didn't use to matter much, but it starts to get annoying with multi-megabyte
      EXPLAIN VERBOSE responses...
      3ec52323
    • T
      First cut at doing something reasonable with OR-of-ANDs WHERE · 43d32d36
      Tom Lane 提交于
      conditions.  There are some pretty bogus heuristics in prepqual.c that
      try to decide whether to output CNF or DNF format; they need to be replaced,
      likely.  Right now the code is probably too willing to choose DNF form,
      which might hurt performance in some cases that used to work OK.
      But at least we have a foundation to build on.
      43d32d36
    • M
      · b705fa39
      Marc G. Fournier 提交于
      Make sure both SRCH_INC and SRCH_LIB are checked for existances and added to
      the CPPFLAGS/LDFLAGS variables...
      b705fa39
    • M
      · 2b7777bf
      Marc G. Fournier 提交于
      cygwin doesn't have an endian.h, but defines BYTE_ORDER in sys/param.h
      2b7777bf
    • T
      Further improvements in cnfify: reduce amount of self-recursion · 2119cc06
      Tom Lane 提交于
      in or_normalize, remove detection of duplicate subexpressions (since it's
      highly unlikely to be worth the amount of time it takes), and introduce
      a dnfify() entry point so that unintelligible backwards logic in UNION
      processing can be eliminated.  This is just an intermediate step ---
      next thing is to look at not forcing the qual into CNF form when it would
      be better off in DNF form.
      2119cc06
  12. 12 9月, 1999 3 次提交
  13. 10 9月, 1999 1 次提交