1. 08 Sep, 2001 6 commits
    • Peter Eisentraut's avatar
      Make the world somewhat safe for (not from) DELETE FROM pg_shadow; · c0d4d547
      Peter Eisentraut authored
      Assign the fixed user id 1 to the user created by initdb.
      A stand-alone backend will always set the user id to 1.
      (Consequently, the name of that user is no longer important.)
      
      In stand-alone mode, the user id 1 will have implicit superuser
      status, to allow repairs even if there are no users defined.
      
      Print a warning message when starting in stand-alone mode when no
      users are defined.
      
      Disallow dropping the current user and session user.
      
      Granting/revoking superuser status also grants/revokes usecatupd.
      (Previously, it would never grant it back.  This could lead to "deadlocks".)
      
      CREATE USER and CREATE GROUP will start allocating user ids at 100
      (unless explicitly specified), to prevent accidental creation of a
      superuser (plus some room for future extensions).
      c0d4d547
    • Bruce Momjian's avatar
      > > A simple and robus solution is in the begin of mbutils.c set default · fdbf796f
      Bruce Momjian authored
      > > ClientEncoding to SQL_ASCII (like default DatabaseEncoding). Bruce, can
      > > you change it? It's one line change. Again thanks.
      
       Forget it! A default client encoding must be set by actual database encoding...
      Please apply the small attached patch that solve it better.
      
      Karel Zak
      fdbf796f
    • Bruce Momjian's avatar
    • Bruce Momjian's avatar
      Update TODO list. · 20dd23c4
      Bruce Momjian authored
      20dd23c4
    • Hiroshi Inoue's avatar
      Resolve compile errors on unix. · 4ad1b5b7
      Hiroshi Inoue authored
      Rename psqlodbc.def -> psqlodbc_win32.def.
      Improve internal *declare cursor* handling
      a little.
      
      Hiroshi Inoue
      4ad1b5b7
    • Tom Lane's avatar
      Clean up some confusion about where and how to set whereToSendOutput. · 02b1a7fd
      Tom Lane authored
      We will no longer try to send elog messages to the client before we have
      initialized backend libpq (oops); however, reporting bogus commandline
      switches via elog does work now (not irrelevant, because of PGOPTIONS).
      Fix problem with inappropriate sending of checkpoint-process messages
      to stderr.
      02b1a7fd
  2. 07 Sep, 2001 31 commits
  3. 06 Sep, 2001 3 commits
    • Bruce Momjian's avatar
      >Well, if it is that easy, I can do it. Patch attached and applied. · 0059c421
      Bruce Momjian authored
      >
      >> On Mon, 3 Sep 2001 22:01:17 -0500, you wrote:
      >>     public boolean isWritable(int column) throws SQLException
      >>     {
      >>         return !isReadOnly(column);
      >>     }
      
      Actually, I think this change has a consequence for this method
      in the same class:
      
          public boolean isDefinitelyWritable(int column)
              throws SQLException
          {
              return isWritable(column);
          }
      
      This is from the JDBC spec
      (http://java.sun.com/j2se/1.3/docs/api/java/sql/ResultSetMetaData.html):
      
        isReadOnly() - Indicates whether the designated column is
      definitely not writable.
      
        isWritable() - Indicates whether it is possible for a write on
      the designated column to succeed.
      
        isDefinitelyWritable() - Indicates whether a write on the
      designated column will definitely succeed.
      
      At this time we don't really implement the fine semantics of
      these methods. I would suggest the following defaults:
      
        isReadOnly()             false
        isWritable()             true
        isDefinitelyWritable()   false
      
      And that would mean that your patch is correct, but
      isDefinitelyWritable() would need to be patched accordingly:
      
          public boolean isDefinitelyWritable(int column)
              throws SQLException
          {
              return false;
          }
      
      Again, both in jdbc1 and jdbc2.
      
      Regards,
      Ren? Pijlman <rene@lab.applinet.nl>
      0059c421
    • Bruce Momjian's avatar
      Update transactions for nested idea. · 1fbb2d9c
      Bruce Momjian authored
      1fbb2d9c
    • Bruce Momjian's avatar
      Update TODO list. · 68a3d2ef
      Bruce Momjian authored
      68a3d2ef