Skip to content
Snippets Groups Projects
  1. Dec 01, 2000
  2. Nov 25, 2000
    • Tom Lane's avatar
      Fix elog logic so that error messages displayed during initdb (or · 0432ce99
      Tom Lane authored
      other standalone-backend situations) are not duplicated.  Remove some
      dead code, add some comments, too.
      0432ce99
    • Bruce Momjian's avatar
      > > Looking some more, I found some other places that need a space (I · 91ba4cc7
      Bruce Momjian authored
      > > suspect...), so here is an updated patch.
      >
      > This seems like the wrong way to go about it, because anytime anyone
      > changes any elog output anywhere, we'll risk another failure.  If
      > syslog can't cope with empty lines, I think the right fix is for the
      > output-to-syslog routine to change the data just before sending ---
      > then there is only one place to fix.  See the syslog output routine in
      > src/backend/utils/error/elog.c.
      Makes sense.  Here's a new patch, now the output even looks better:
      
      Larry Rosenman
      91ba4cc7
  3. Nov 14, 2000
  4. Nov 13, 2000
    • Bruce Momjian's avatar
      Ok, You guys are probably tired of me, BUT, here is another one, that · d63a762f
      Bruce Momjian authored
      adds the facility to set the program name used in syslog.
      (this includes the other ones).
      
      One gotcha, the parser doesn't like special characters in strings.
      For example, i tried to use pg-test, and if failed the parse coming
      from the postgresql.conf file.
      
      I don't think it's a showstopper..
      
      Larry Rosenman
      d63a762f
  5. Oct 30, 2000
  6. Oct 07, 2000
    • Bruce Momjian's avatar
      The beos port in the source tree doesn't even compile. and even · 7ea8403c
      Bruce Momjian authored
      after that dynamic loading isn't working and shared memory handling is
      broken.
      
              Attached with this message, there is a Zip file which contain :
      
              * beos.diff = patch file generated with difforig
              * beos = folder with beos support files which need to be moved in /
      src/backend/port
              * expected = foler with three file for message and precision
      difference in regression test
              * regression.diff = rule problem (need to kill the backend manualy)
              * dynloader = dynloader files (they are also in the pacth files,
      but there is so much modification that I have join full files)
      
              Everything works except a problem in 'rules' Is there some problems
      with rules in the current tree ? It used to works with last week tree.
      
      Cyril VELTER
      7ea8403c
  7. Oct 03, 2000
    • Bruce Momjian's avatar
      New diff that now covers the entire tree. Applying this gets postgresql · 87c0e623
      Bruce Momjian authored
      working on the VERY latest version of BeOS.  I'm sure there will be
      alot of comments, but then if there weren't I'd be disappointed!
      
      Thanks for your continuing efforts to get this into your tree.
      
      Haven't bothered with the new files as they haven't changed.
      
      BTW Peter, the compiler is "broken" about the bool define and so on.
      I'm filing a bug report to try and get it addressed.  Hopefully then we
      can tidy up the code a bit.
      
      I await the replies with interest :)
      
      David Reid
      87c0e623
  8. Sep 29, 2000
  9. Jun 28, 2000
    • Tom Lane's avatar
      First phase of memory management rewrite (see backend/utils/mmgr/README · 1aebc361
      Tom Lane authored
      for details).  It doesn't really do that much yet, since there are no
      short-term memory contexts in the executor, but the infrastructure is
      in place and long-term contexts are handled reasonably.  A few long-
      standing bugs have been fixed, such as 'VACUUM; anything' in a single
      query string crashing.  Also, out-of-memory is now considered a
      recoverable ERROR, not FATAL.
      Eliminate a large amount of crufty, now-dead code in and around
      memory management.
      Fix problem with holding off SIGTRAP, SIGSEGV, etc in postmaster and
      backend startup.
      1aebc361
  10. Jun 04, 2000
  11. May 31, 2000
    • Peter Eisentraut's avatar
      The heralded `Grand Unified Configuration scheme' (GUC) · 6a68f426
      Peter Eisentraut authored
      That means you can now set your options in either or all of $PGDATA/configuration,
      some postmaster option (--enable-fsync=off), or set a SET command. The list of
      options is in backend/utils/misc/guc.c, documentation will be written post haste.
      
      pg_options is gone, so is that pq_geqo config file. Also removed were backend -K,
      -Q, and -T options (no longer applicable, although -d0 does the same as -Q).
      
      Added to configure an --enable-syslog option.
      
      changed all callers from TPRINTF to elog(DEBUG)
      6a68f426
  12. May 30, 2000
  13. Apr 15, 2000
  14. Apr 12, 2000
  15. Feb 13, 2000
    • Bruce Momjian's avatar
      contrib-array.patch · a2226ad2
      Bruce Momjian authored
              this is an old patch which I have already submitted and never seen
              in the sources. It corrects the datatype oids used in some iterator
              functions. This bug has been reported to me by many other people.
      
      contrib-datetime.patch
      
              some code contributed by Reiner Dassing <dassing@wettzell.ifag.de>
      
      contrib-makefiles.patch
      
              fixes all my contrib makefiles which don't work with some compilers,
              as reported to me by another user.
      
      contrib-miscutil.patch
      
              an old patch for one of my old contribs.
      
      contrib-string.patch
      
              a small change to the c-like text output functions. Now the '{'
              is escaped only at the beginning of the string to distinguish it
              from arrays, and the '}' is no more escaped.
      
      elog-lineno.patch
      
              adds the current lineno of CopyFrom to elog messages. This is very
              useful when you load a 1 million tuples table from an external file
              and there is a bad value somehere. Currently you get an error message
              but you can't know where is the bad data. The patch uses a variable
              which was declared static in copy.c. The variable is now exported
              and initialized to 0. It is always cleared at the end of the copy
              or at the first elog message or when the copy is canceled.
              I know this is very ugly but I can't find any better way of knowing
              where the copy fails and I have this problem quite often.
      
      plperl-makefile.patch
      
              fixes a typo in a makefile, but the error must be elsewhere because
              it is a file generated automatically. Please have a look.
      
      tprintf-timestamp.patch
      
              restores the original 2-digit year format, assuming that the two
              century digits don't carry much information and that '000202' is
              easier to read than 20000202. Being only a log file it shouldn't
              break anything.
      
      Please apply the patches before the next scheduled code freeze.
      
      I also noticed that some of the contribs don't compile correcly. Should we
      ask people to fix their code or rename their makefiles so that they are
      ignored by the top makefile?
      
      --
      Massimo Dal Zotto
      a2226ad2
  16. Jan 26, 2000
    • Bruce Momjian's avatar
      Add: · 5c25d602
      Bruce Momjian authored
        * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
      
      to all files copyright Regents of Berkeley.  Man, that's a lot of files.
      5c25d602
  17. Dec 31, 1999
    • Tom Lane's avatar
      elog() was set up to call abort() if it saw an ERROR or FATAL exit · 8a40400d
      Tom Lane authored
      during InitProcessingMode and the CurrentTransactionState was neither
      TRANS_DEFAULT nor TRANS_DISABLED.  Unfortunately, after someone's recent
      change to start the transaction manager earlier in startup than it used
      to be started, that caused an abort() and consequent database system
      reset on quite harmless errors (such as rejecting an invalid user name!).
      As far as I can see, the test on CurrentTransactionState was completely
      useless anyway, so I've removed it.
      8a40400d
  18. Nov 22, 1999
  19. Nov 16, 1999
    • Tom Lane's avatar
      Modify elog() logic so that it won't try to longjmp(Warn_restart) before · e1492cc3
      Tom Lane authored
      Warn_restart has been set by the backend main loop.  This means that
      elog(ERROR) or elog(FATAL) in the postmaster or during backend startup
      now have well-defined behavior: proc_exit() rather than coredump.
      In the case of elog() inside the postmaster, I think that proc_exit()
      is probably not enough --- don't we want our child backends to be
      forced to quit too?  But I don't understand Vadim's recent changes in
      this area, so I'll leave it to him to look over and tweak if needed.
      e1492cc3
  20. Oct 25, 1999
    • Tom Lane's avatar
      Standardize on MAXPGPATH as the size of a file pathname buffer, · 51f62d50
      Tom Lane authored
      eliminating some wildly inconsistent coding in various parts of the
      system.  I set MAXPGPATH = 1024 in config.h.in.  If anyone is really
      convinced that there ought to be a configure-time test to set the
      value, go right ahead ... but I think it's a waste of time.
      51f62d50
  21. Oct 06, 1999
  22. Sep 11, 1999
    • Tom Lane's avatar
      Eliminate elog()'s hardwired limit on length of an error message. · b399805e
      Tom Lane authored
      This change seems necessary in conjunction with long queries, and it
      cleans up some bogosity in connection with long EXPLAIN texts anyway.
      Note that current libpq will accept any length error message (at least
      until it runs out of memory); prior versions have a limit of 8K, but
      will cleanly discard excess error text, so there shouldn't be any
      big compatibility problems with old clients.
      b399805e
  23. Jul 17, 1999
  24. Jul 16, 1999
  25. May 25, 1999
  26. May 10, 1999
  27. Apr 25, 1999
  28. Apr 20, 1999
  29. Apr 16, 1999
  30. Feb 14, 1999
  31. Jan 23, 1999
  32. Jan 11, 1999
    • Marc G. Fournier's avatar
      · 3b3ffc8d
      Marc G. Fournier authored
      From: Magnus Hagander <mha@sollentuna.net>
      
      Here is a first patch to cleanup the backend side of libpq.
      This patch removes all external dependencies on the "Pfin" and "Pfout" that
      are declared in pqcomm.h. These variables are also changed to "static" to
      make sure.
      Almost all the change is in the handler of the "copy" command - most other
      areas of the backend already used the correct functions.
      This change will make the way for cleanup of the internal stuff there - now
      that all the functions accessing the file descriptors are confined to a
      single directory.
      3b3ffc8d
  33. Jan 01, 1999
  34. Sep 01, 1998
  35. Aug 31, 1998
  36. Aug 25, 1998
    • Marc G. Fournier's avatar
      · 7414d619
      Marc G. Fournier authored
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      > tprintf.patch
      >
      >       tprintf.patch
      >
      >       adds functions and macros which implement a conditional trace package
      >       with the ability to change flags and numeric options of running
      >       backends at runtime.
      >       Options/flags can be specified in the command line and/or read from
      >       the file pg_options in the data directory.
      7414d619
  37. Jul 08, 1998
Loading