1. 29 Aug, 1998 3 commits
    • Bruce Momjian's avatar
      Hello! · a060d5be
      Bruce Momjian authored
      Here is a new patch for libpq, to make it work on Win32 again (since
      the latest modifications broke it a little).
      
      Please also add the file "libpq.rc" to the interfaces/libpq directory.
      This will allow version-stamping of the generated DLL file, so that
      automatic install programs (and interested users) can determine
      the version of the file.  The file is currently set as "prerelease".
      Before the release, somebody should change the line "FILEFLAGS
      VS_FF_PRERELEASE" to "FILEFLAGS 0".  That information should probably
      go into toos\RELEASE_CHANGES.
      
      The patch is against the cvs as of ~ 1998-08-26 14:30 CEST.
      
      
      //Magnus
      a060d5be
    • Bruce Momjian's avatar
      d15c37ca
    • Bruce Momjian's avatar
      libpq's pqGetnchar() should not return a null-terminated value · 3e873022
      Bruce Momjian authored
      anymore.  Fix for large objects.
      3e873022
  2. 28 Aug, 1998 5 commits
    • Marc G. Fournier's avatar
      · b9b00d5f
      Marc G. Fournier authored
      From: Michael Meskes <meskes@online-club.de>
      
      This one is against the current archive (so it contains the one I send the
      other day). It should fix the AIX problems. Andreas, could you please try
      it? Thanks.
      
      + Wed Aug 26 16:17:39 CEST 1998
      +
      +       - Sync preproc.y with gram.y
      +
      + Thu Aug 27 15:32:23 CEST 1998
      +
      +       - Fix some minor glitches that the AIX compiler complains about
      +       - Added patchlevel to library
      +
      + Fri Aug 28 15:36:58 CEST 1998
      +
      +       - Removed one line of code that AIX complains about since it was not
      +         needed anyway
      +       - Set library version to 2.6.1
      b9b00d5f
    • Bruce Momjian's avatar
      013184c8
    • Marc G. Fournier's avatar
      · b686927f
      Marc G. Fournier authored
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      I have this small patch which fixes a typo in my previous lock patches.
      Fortunately the bug affects only user locks.
      
      -
      b686927f
    • Bruce Momjian's avatar
      vacuum fix. · d8dbbc8c
      Bruce Momjian authored
      d8dbbc8c
    • Bruce Momjian's avatar
      Hi all, · a53ea467
      Bruce Momjian authored
          I  don't know if this is really related to the initdb problem
          discussion (haven't followed it enough). But seems so because
          it  fixes  a  damn  problem  during  index tuple insertion on
          CREATE TABLE into pg_attribute_relid_attnum_index.
      
          Anyway - this bug was really hard to find. During startup the
          relcache  reads  in  some  prepared  information  about index
          strategies from a file and then  reinitializes  the  function
          pointers  inside  the  scanKey data.  But for sake it assumed
          single attribute index tuples (hasn't that changed recently).
          Thus not all the strategies scanKey entries where initialized
          properly,  resulting  in  invalid  addresses  for  the  btree
          comparision functions.
      
          With  the  patch  at  the  end  the  regression  tests passed
          excellent except for the sanity_check that crashed at  vacuum
          and the misc test where the select unique1 from onek2 outputs
          the two rows in different order.
      
      Jan
      a53ea467
  3. 27 Aug, 1998 3 commits
  4. 26 Aug, 1998 6 commits
  5. 25 Aug, 1998 23 commits
    • Marc G. Fournier's avatar
      · 96c4212f
      Marc G. Fournier authored
      cvs add'd two files for the tprintf() patch...
      96c4212f
    • Marc G. Fournier's avatar
      · f62d1253
      Marc G. Fournier authored
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      >       these patches define the UNLISTEN sql command. The code already
      >       existed but it was unknown to the parser. Now it can be used
      >       like the listen command.
      >       You must make clean and delete gram.c and parser.h before make.
      f62d1253
    • 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
    • Marc G. Fournier's avatar
      · 51e8e187
      Marc G. Fournier authored
      Massimo Dal Zotto <dz@cs.unitn.it>
      
      > socket-flock.patch
      >
      >       use advisory locks to check if the unix socket can be deleted.
      >       A running postmaster keeps a lock on that file. A starting
      >       postmaster exits if the file exists and is locked, otherwise
      >       it deletes the sockets and proceeds.
      >       This avoid the need to remove manually the file after a postmaster
      >       or system crash.
      >       I don't know if flock is available on any system. If not we could
      >       define a HAVE_FLOCK set by configure.
      51e8e187
    • Marc G. Fournier's avatar
      · 53d7d473
      Marc G. Fournier authored
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      > sinval.patch
      >
      >       fixes a problem in SI cache which causes table overflow if some
      >       backend is idle for a long time while other backends keep adding
      >       entries.
      >       It uses the new signal handling implemented in tprintf.patch.
      >       I have also increacasesed the max number of backends from 32 to 64
      >       and the table size from 1000 to 5000.
      >       I don't know if anybody is working on SI, but until another
      >       solution is found this patch fixes the problem. I have received
      >       messages from other people reporting the same problem which I
      >       fixed many months ago.
      53d7d473
    • Marc G. Fournier's avatar
      · 82555376
      Marc G. Fournier authored
      missed adding a new include file
      82555376
    • Marc G. Fournier's avatar
      · 8e9d69d6
      Marc G. Fournier authored
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      > sequence.patch
      >
      >       adds the missing setval command to sequences. Owner of sequences
      >       can now set the last value to any value between min and max
      >       without recreating the sequence. This is useful after loading
      >       data from external files.
      8e9d69d6
    • Marc G. Fournier's avatar
      · 88b17d9c
      Marc G. Fournier authored
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      > ps-status.patch
      >
      >       macros for ps status, used by postgres.c and utility.c.
      >       Unfortunately ps status is system dependent and the current
      >       code doesn't work on linux. The use of macros confines system
      >       dependency to into one file (ps-status.h). Users of other
      >       operating systems should check this code and submit new macros.
      88b17d9c
    • Marc G. Fournier's avatar
      · ab00a220
      Marc G. Fournier authored
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      > pqpacket.patch
      >
      >       fixed indentation.
      ab00a220
    • Marc G. Fournier's avatar
      · 7dbcf31b
      Marc G. Fournier authored
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      lock.patch
      
              I have rewritten lock.c cleaning up the code and adding better
              assert checking I have also added some fields to the lock and
              xid tags for better support of user locks. There is also a new
              function which returns an array of pids owning a lock.
              I'm using this code from over six months and it works fine.
      7dbcf31b
    • Marc G. Fournier's avatar
      · 1acf0d85
      Marc G. Fournier authored
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      config.patch
      
              remove old defines no more used in the code.
      1acf0d85
    • Marc G. Fournier's avatar
      · 1a5fb654
      Marc G. Fournier authored
      From: Massimo Dal Zotto <dz@cs.unitn.it>
      
      assert.patch
      
              adds a switch to turn on/off the assert checking if enabled at compile
              time. You can now compile postgres with assert checking and disable it
              at runtime in a production environment.
      1a5fb654
    • Bruce Momjian's avatar
      Can someone please apply this portability patch to genbki.sh ? · 1682c362
      Bruce Momjian authored
      (Mark or Bruce?) It fixes a problem when cpp gives a warning when
      precompiling /dev/null like:  "/dev/null", line 1: 1506-229 (W)
      File is empty.  This leads to a hangup when doing the description
      load during initdb, since stderr also ends up in the global1.description
      and local1_template1.description
      
      stderr has to be redirected to /dev/null:
      
      Andreas Zeugswetter
      1682c362
    • Thomas G. Lockhart's avatar
    • Thomas G. Lockhart's avatar
      Support SERIAL column type. Expand column marked is_sequence into three · 7ff198cd
      Thomas G. Lockhart authored
       statements:
       - the table definition with a default clause referencing the sequence;
       - a CREATE SEQUENCE statement;
       - a UNIQUE constraint, which expands into a CREATE INDEX statement.
      This is not a perfect solution, since the sequence will remain even if
       the table is dropped. Also, there is no absolute protection on updating
       the sequence column.
      7ff198cd
    • Thomas G. Lockhart's avatar
      Support SERIAL column type. Expand into an integer column but mark · 12cf9f80
      Thomas G. Lockhart authored
       is_sequence in the ColumnDef structure.
      12cf9f80
    • Thomas G. Lockhart's avatar
      Make new section header. · fddd79aa
      Thomas G. Lockhart authored
      fddd79aa
    • Thomas G. Lockhart's avatar
      Clean up double-quotes around column and table names. · 6962f86e
      Thomas G. Lockhart authored
       Had too many in some cases because there was already a routine
       taking care of it.
      6962f86e
    • Thomas G. Lockhart's avatar
      Move debugging printout of the query tree to print for all cases. · 7540af49
      Thomas G. Lockhart authored
       Formerly came just after early exit from loop for command nodes,
       so missed some cases.
      7540af49
    • Marc G. Fournier's avatar
      · c8b3d5d3
      Marc G. Fournier authored
      Add nextstep to similar template file
      c8b3d5d3
    • Marc G. Fournier's avatar
      · dd70e439
      Marc G. Fournier authored
      re-integrate nextstep dynloader functionality
      
      From: Jacek Lasecki <jacek@sound.eti.pg.gda.pl>
      dd70e439
    • Marc G. Fournier's avatar
      · 875a3f66
      Marc G. Fournier authored
      From: Michael Meskes <meskes@online-club.de>
      
      +
      + Fri Aug 14 12:44:21 CEST 1998
      +
      +       - Added EXEC SQL DEFINE statement
      +       - Set version to 2.4.0
      +
      + Tue Aug 18 09:24:15 CEST 1998
      +
      +       - Removed keyword IS from DEFINE statement
      +       - Added latest changes from gram.y
      +       - Removed duplicate symbols from preproc.y
      +       - Initialize sqlca structure
      +       - Added check for connection to ecpglib
      +       - Set version to 2.4.1
      +
      + Thu Aug 20 15:31:29 CEST 1998
      +
      +       - Cleaned up memory allocation in ecpglib.c
      +       - Set library version to 2.6
      +
      875a3f66
    • Marc G. Fournier's avatar
      · 35478b80
      Marc G. Fournier authored
      From: Michael Meskes <meskes@online-club.de>
      
      +
      + Fri Aug 14 12:44:21 CEST 1998
      +
      +       - Added EXEC SQL DEFINE statement
      +       - Set version to 2.4.0
      +
      + Tue Aug 18 09:24:15 CEST 1998
      +
      +       - Removed keyword IS from DEFINE statement
      +       - Added latest changes from gram.y
      +       - Removed duplicate symbols from preproc.y
      +       - Initialize sqlca structure
      +       - Added check for connection to ecpglib
      +       - Set version to 2.4.1
      +
      + Thu Aug 20 15:31:29 CEST 1998
      +
      +       - Cleaned up memory allocation in ecpglib.c
      +       - Set library version to 2.6
      +
      35478b80