Skip to content
Snippets Groups Projects
  1. Feb 02, 2004
    • Bruce Momjian's avatar
      > src/backend/commands/user.c file has some parse error at repalloc(), · bd2a8078
      Bruce Momjian authored
      palloc()$
      
      Fixed.  Thanks.
      
      > src/backend/postmaster/pgstat.c miss
      > #include "tcop/tcopprot.h" line.
      
      Fixed.
      
      > src/utils/dllinit.c wrong include header line at MinGW.
      > #include <cygwin/version.h> must be not included
      
      Fixed.
      
      > by the way,
      > I can't compile eccp because I used lower version bison.
      
      > and bin/pg_resetxlog too. in this case I can't find what's wrong.
      
      Fixed.
      bd2a8078
    • Neil Conway's avatar
      Fix a read of uninitialized memory in next_token() of hba.c, spotted via · 9e218af7
      Neil Conway authored
      valgrind: a buffer passed to strncmp() had to be NUL-terminated. Original
      report and patch from Dennis Bjorkland, some cleanup by Andrew Dunstan,
      and finally some editorializing from Neil Conway.
      9e218af7
    • Bruce Momjian's avatar
    • Tom Lane's avatar
      Avoid generating invalid character encoding sequences in make_greater_string. · 9fe09757
      Tom Lane authored
      Not sure how this mistake evaded detection for so long.
      9fe09757
    • Bruce Momjian's avatar
      Adjust rename on Win32 to only link to temp name while holding lock, · d9d2ca8e
      Bruce Momjian authored
      then release locks and loop over renaming to active file name.
      d9d2ca8e
    • Bruce Momjian's avatar
      Briefly, · e5e5a323
      Bruce Momjian authored
       * configure + Makefile changes
       * shared memory attaching in EXEC_BACKEND case (+ minor fix for apparent
      cygwin bug under cygwin/EXEC_BACKEND case only)
       * PATH env var separator differences
       * missing win32 rand functions added
       * placeholder replacements for sync etc under port.h
      
      
      To those who are really interested, and there are a few of you: the attached
      patch + file will allow the source base to be compiled (and, for some
      definition, "run") under MingW, with the following caveats (I wanted to
      first properly fix all but the last of these, but y'all won't quit asking
      for a patch :-):
      
              * child death: SIGCHLD not yet sent, so as a minimum, you'll need to
      put in some sort of delay after StartupDatabase, and handle setting
      StartupPID to 0 etc (ie. the stuff the reaper() signal function is supposed
      to do)
      
              * dirmod.c: comment out the elog calls
      
              * dfmgr.c: some hackage required to substitute_libpath_macro
      
              * slru/xact.c: comment out the errno checking after the readdir
      (fixed by next version of MingW)
      
      Again, this is only if you *really* want to see postgres compile and start,
      and is a nice leg-up for working on the other Win32 TODO list items. Just
      don't expect too much else from it at this point...
      
      
      Claudio Natoli
      e5e5a323
  2. Feb 01, 2004
  3. Jan 31, 2004
  4. Jan 30, 2004
  5. Jan 28, 2004
    • Tom Lane's avatar
      Review uses of IsUnderPostmaster, change some tests to look at · 2f0d43b2
      Tom Lane authored
      whereToSendOutput instead because they are really inquiring about
      the correct client communication protocol.  Update some comments.
      This is pointing towards supporting regular FE/BE client protocol
      in a standalone backend, per discussion a month or so back.
      2f0d43b2
    • Tom Lane's avatar
      Fix oversight in check_ungrouped_columns optimization that avoids · 31a0f1d3
      Tom Lane authored
      unnecessary checks for complex grouping expressions: we cannot check
      whether the expressions are simple Vars until after we apply
      flatten_join_alias_vars, because in the case of FULL JOIN that routine
      can introduce non-Var expressions.  Per example from Joel Knight.
      31a0f1d3
    • Tom Lane's avatar
      simplify_function() mustn't try to evaluate functions that return · 4405b3e0
      Tom Lane authored
      composite types, because TupleTableSlots aren't Datums and can't be
      stored in Const nodes.  We can remove this restriction if we ever
      adopt a cleaner runtime representation for whole-tuple results, but
      at the moment it's broken.  Per example from Thomas Hallgren.
      4405b3e0
  6. Jan 27, 2004
    • Bruce Momjian's avatar
      Pgindent win32 signal code. · 70d58115
      Bruce Momjian authored
      70d58115
    • Bruce Momjian's avatar
      Here's the latest win32 signals code, this time in the form of a patch · 50491963
      Bruce Momjian authored
      against the latest shapshot. It also includes the replacement of kill()
      with pqkill() and sigsetmask() with pqsigsetmask().
      
      Passes all tests fine on my linux machine once applied. Still doesn't
      link completely on Win32 - there are a few things still required. But
      much closer than before.
      
      At Bruce's request, I'm goint to write up a README file about the method
      of signals delivery chosen and why the others were rejected (basically a
      summary of the mailinglist discussions). I'll finish that up once/if the
      patch is accepted.
      
      
      Magnus Hagander
      50491963
  7. Jan 26, 2004
  8. Jan 25, 2004
  9. Jan 24, 2004
    • Jan Wieck's avatar
      Added GUC variable bgwriter_flush_method controlling the action · d77b63b1
      Jan Wieck authored
      done by the background writer between writing dirty blocks and
      napping.
      
          none (default)   no action
      	sync             bgwriter calls smgrsync() causing a sync(2)
      
      A global sync() is only good on dedicated database servers, so
      more flush methods should be added in the future.
      
      Jan
      d77b63b1
    • Dennis Bjorklund's avatar
      Translation updates · cb3dc829
      Dennis Bjorklund authored
      cb3dc829
    • Tom Lane's avatar
      Repair planner failure for cases involving Cartesian products inside · 5d665836
      Tom Lane authored
      IN (sub-SELECT) constructs.  We must force a clauseless join of the
      sub-select member relations, but it wasn't happening because the code
      thought it would be able to use the join clause arising from the IN.
      5d665836
    • Tom Lane's avatar
      Revise GEQO planner to make use of some heuristic knowledge about SQL, namely · 3969f292
      Tom Lane authored
      that it's good to join where there are join clauses rather than where there
      are not.  Also enable it to generate bushy plans at need, so that it doesn't
      fail in the presence of multiple IN clauses containing sub-joins.  These
      changes appear to improve the behavior enough that we can substantially reduce
      the default pool size and generations count, thereby decreasing the runtime,
      and yet get as good or better plans as we were getting in 7.4.  Consequently,
      adjust the default GEQO parameters.  I also modified the way geqo_effort is
      used so that it affects both population size and number of generations;
      it's now useful as a single control to adjust the GEQO runtime-vs-plan-quality
      tradeoff.  Bump geqo_threshold to 12, since even with these changes GEQO
      seems to be slower than the regular planner at 11 relations.
      3969f292
  10. Jan 23, 2004
  11. Jan 22, 2004
  12. Jan 21, 2004
  13. Jan 19, 2004
Loading