1. 03 Oct, 2002 5 commits
    • Bruce Momjian's avatar
      > The previous patch fixed an infinite recursion bug in · 620dddf8
      Bruce Momjian authored
      > contrib/tablefunc/tablefunc.c:connectby. But, other unmanageable error
      > seems to occur even if a table has commonplace tree data(see below).
      >
      > I would think the patch, ancestor check, should be
      >
      >   if (strstr(branch_delim || branchstr->data || branch_delim,
      >                        branch_delim || current_key || branch_delim))
      >
      > This is my image, not a real code. However, if branchstr->data includes
      > branch_delim, my image will not be perfect.
      
      Good point. Thank you Masaru for the suggested fix.
      
      Attached is a patch to fix the bug found by Masaru. His example now
      produces:
      
      regression=# SELECT * FROM connectby('connectby_tree', 'keyid',
      'parent_keyid', '11', 0, '-') AS t(keyid int, parent_keyid int, level
      int,
      branch text);
        keyid | parent_keyid | level |  branch
      
      -------+--------------+-------+----------
           11 |              |     0 | 11
           10 |           11 |     1 | 11-10
          111 |           11 |     1 | 11-111
            1 |          111 |     2 | 11-111-1
      (4 rows)
      
      While making the patch I also realized that the "no show branch" form of
      the  function was not going to work very well for recursion detection.
      Therefore  there is now a default branch delimiter ('~') that is used
      internally, for  that case, to enable recursion detection to work. If
      you need a different  delimiter for your specific data, you will have to
      use the "show branch" form  of the function.
      
      Joe Conway
      620dddf8
    • Bruce Momjian's avatar
      The attached patch fixes a number of issues related to compiling the · a0bf2503
      Bruce Momjian authored
      client
      utilities (libpq.dll and psql.exe) for win32 (missing defines,
      adjustments to
      includes, pedantic casting, non-existent functions) per:
         http://developer.postgresql.org/docs/postgres/install-win32.html.
      
      It compiles cleanly under Windows 2000 using Visual Studio .net. Also
      compiles clean and passes all regression tests (regular and contrib)
      under Linux.
      
      In addition to a review by the usual suspects, it would be very
      desirable for  someone well versed in the peculiarities of win32 to take
      a look.
      
      Joe Conway
      a0bf2503
    • Bruce Momjian's avatar
      d4eae725
    • Bruce Momjian's avatar
      Add: · 50869ef8
      Bruce Momjian authored
      > * Add schema, cast, and conversion backslash commands to psql
      50869ef8
    • Bruce Momjian's avatar
  2. 02 Oct, 2002 4 commits
  3. 01 Oct, 2002 7 commits
  4. 29 Sep, 2002 1 commit
  5. 28 Sep, 2002 1 commit
  6. 27 Sep, 2002 7 commits
  7. 26 Sep, 2002 9 commits
  8. 25 Sep, 2002 6 commits
    • Peter Eisentraut's avatar
      Enhance the description of user and database management. Reduce the · c889c9c9
      Peter Eisentraut authored
      number of forward references in the admin guide.
      c889c9c9
    • Tom Lane's avatar
      Remove ShutdownBufferPoolAccess exit callback, and do the work in · 8a6fab41
      Tom Lane authored
      ProcKill instead, where we still have a PGPROC with which to wait on
      LWLocks.  This fixes 'can't wait without a PROC structure' failures
      occasionally seen during backend shutdown (I'm surprised they weren't
      more frequent, actually).  Add an Assert() to LWLockAcquire to help
      catch any similar mistakes in future.  Fix failure to update MyProcPid
      for standalone backends and pgstat processes.
      8a6fab41
    • Tom Lane's avatar
      Shouldn't be here ... · 691aefcf
      Tom Lane authored
      691aefcf
    • Bruce Momjian's avatar
      Stamp configure for beta2. · 4852dd9d
      Bruce Momjian authored
      4852dd9d
    • Bruce Momjian's avatar
      df88a3cf
    • Barry Lind's avatar
      Applied patch from Aaron Mulder (ammulder@alumni.princeton.edu) that fixes · 7bf1c8b0
      Barry Lind authored
      jdbc datasource support for jdk1.4/jdbc3
      
       Modified Files:
       	jdbc/build.xml jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/jdbc2/optional/BaseDataSource.java
       	jdbc/org/postgresql/jdbc2/optional/PGObjectFactory.java
       	jdbc/org/postgresql/jdbc2/optional/PooledConnectionImpl.java
       	jdbc/org/postgresql/jdbc2/optional/PoolingDataSource.java
       	jdbc/org/postgresql/test/jdbc2/optional/BaseDataSourceTest.java
       	jdbc/org/postgresql/test/jdbc2/optional/OptionalTestSuite.java
       	jdbc/org/postgresql/test/jdbc3/Jdbc3TestSuite.java
       Added Files:
       	jdbc/org/postgresql/jdbc3/Jdbc3ConnectionPool.java
       	jdbc/org/postgresql/jdbc3/Jdbc3ObjectFactory.java
       	jdbc/org/postgresql/jdbc3/Jdbc3PooledConnection.java
       	jdbc/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java
       	jdbc/org/postgresql/jdbc3/Jdbc3SimpleDataSource.java
       	jdbc/org/postgresql/test/jdbc2/optional/PoolingDataSourceTest.java
       	jdbc/org/postgresql/test/jdbc3/Jdbc3ConnectionPoolTest.java
       	jdbc/org/postgresql/test/jdbc3/Jdbc3PoolingDataSourceTest.java
       	jdbc/org/postgresql/test/jdbc3/Jdbc3SimpleDataSourceTest.java
       	jdbc/org/postgresql/test/util/MiniJndiContext.java
       	jdbc/org/postgresql/test/util/MiniJndiContextFactory.java
      7bf1c8b0