1. 09 Jun, 2005 7 commits
    • Tom Lane's avatar
      Put a critical section around update of hash index metapage. Per · 82358ca9
      Tom Lane authored
      discussion with Qingqing Zhou.
      82358ca9
    • Peter Eisentraut's avatar
      Add example for pg_config --configure. · 65d27324
      Peter Eisentraut authored
      65d27324
    • Bruce Momjian's avatar
      Since I needed this feature badly, I added the -n / --schema switch to · ebc86498
      Bruce Momjian authored
      pg_restore. It restores the given schemaname only. It can be used in
      conjunction with the -t and other switches to make the selection very
      fine grained.
      
      Richard van den Bergg, CISSP
      ebc86498
    • Bruce Momjian's avatar
      Please find attached a patch (diff -c against cvs HEAD) to add a · 4d0e7b4a
      Bruce Momjian authored
      function that accepts a double precision argument assumed to be a Unix
      epoch timestamp and returns timestamp with time zone, and accompanying
      documentation.
      
      Usage:
      
      test=# select to_timestamp(200120400);
             to_timestamp
      ------------------------
        1976-05-05 14:00:00+09
      (1 row)
      
      Michael Glaesemann
      4d0e7b4a
    • Bruce Momjian's avatar
      I've created a patch which adds support for troff "-ms" output to · 4a5cda7b
      Bruce Momjian authored
      psql.  i.e. "\pset format troff-ms".  The patch also corrects some
      problems with the "latex" format, notably defining an extra column in
      the output table, and correcting some alignment issues; it also
      changes the output to match the border setting as documented in the
      manual page and as shown with the "aligned" format.
      
      The troff-ms output is mostly identical to the latex output allowing
      for the differences between the two typesetters.
      
      The output should be saved in a file and piped as follows:
      
        cat file | tbl | troff -T ps -ms > file.ps
      or
        tbl file | troff -T ps -ms > file.ps
      
      Because it contains tabs, you'll need to redirect psql output or use
      "script", rather than pasting from a terminal window, due to the tabs
      which can be replaced with spaces.
      
      Roger Leigh
      4a5cda7b
    • Tom Lane's avatar
      Simplify the planner's join clause management by storing join clauses · a31ad27f
      Tom Lane authored
      of a relation in a flat 'joininfo' list.  The former arrangement grouped
      the join clauses according to the set of unjoined relids used in each;
      however, profiling on test cases involving lots of joins proves that
      that data structure is a net loss.  It takes more time to group the
      join clauses together than is saved by avoiding duplicate tests later.
      It doesn't help any that there are usually not more than one or two
      clauses per group ...
      a31ad27f
    • Bruce Momjian's avatar
      Remove idea of schema tablespaces: · c51815af
      Bruce Momjian authored
      < 	o Allow databases and schemas to be moved to different tablespaces
      <
      < 	  One complexity is whether moving a schema should move all existing
      < 	  schema objects or just define the location for future object creation.
      <
      > 	o Allow databases to be moved to different tablespaces
      484c480
      < 	  schema. Global system tables can never be moved.
      > 	  tablespace. Global system tables can never be moved.
      c51815af
  2. 08 Jun, 2005 4 commits
  3. 07 Jun, 2005 7 commits
    • Bruce Momjian's avatar
      fbc4edfb
    • Bruce Momjian's avatar
      Fix word wrap: · b3e798d7
      Bruce Momjian authored
      <   changes made by the interface driver for its internal use.  One idea is
      <   for this to be a protocol-only feature.  Another approach is to notify
      <   the protocol when a RESET CONNECTION command is used.
      >   changes made by the interface driver for its internal use.  One idea
      >   is for this to be a protocol-only feature.  Another approach is to
      >   notify the protocol when a RESET CONNECTION command is used.
      b3e798d7
    • Tom Lane's avatar
      Use just NULL not NULL::TEXT --- the latter coding is unnecessary and · c14f2ba7
      Tom Lane authored
      not schema-safe.  Per report from Jochem van Dieten.
      c14f2ba7
    • Neil Conway's avatar
      Add a function lastval(), which returns the value returned by the · 657c098e
      Neil Conway authored
      last nextval() or setval() performed by the current session. Update the
      docs, add regression tests, and bump the catalog version. Patch from
      Dennis Björklund, various improvements by Neil Conway.
      657c098e
    • Neil Conway's avatar
      Add support for an optional INTO clause to PL/PgSQL's EXECUTE command. · c59887f9
      Neil Conway authored
      This allows the result of executing a SELECT to be assigned to a row
      variable, record variable, or list of scalars. Docs and regression tests
      updated. Per Pavel Stehule, improvements and cleanup by Neil Conway.
      c59887f9
    • Bruce Momjian's avatar
      Update text for RESET CONNECTION: · 0f011f6d
      Bruce Momjian authored
      <   all temporary tables, removal of any NOTIFYs, cursors, prepared
      <   queries(?), currval()s, etc.  This could be used for connection pooling.
      <   We could also change RESET ALL to have this functionality.
      >   temporary tables, removing any NOTIFYs, cursors, open transactions,
      >   prepared queries, currval()s, etc.  This could be used  for connection
      >   pooling.  We could also change RESET ALL to have this functionality.
      >   The difficult of this features is allowing RESET ALL to not affect
      >   changes made by the interface driver for its internal use.  One idea is
      >   for this to be a protocol-only feature.  Another approach is to notify
      >   the protocol when a RESET CONNECTION command is used.
      0f011f6d
    • Bruce Momjian's avatar
      Ipcrm -> ipcclean in error message: · 1b000116
      Bruce Momjian authored
      ```------------------------------------------------------------------------
      While playing around, I got the following error message:
      
      --
      FATAL:  pre-existing shared memory block (key 5432001, ID 90898435) is
      still in use
      HINT:  If you're sure there are no old server processes still running,
      remove the shared memory block with the command "ipcrm", or just delete
      the file "/home/hlinnaka/pgsql/data/postmaster.pid".
      ```
      
      Thats normal because I used "kill -9 postmaster" to shut down.
      
      The hint advises me to use "ipcrm", but there's the "ipcclean" script in
      bin for just this purpose. The hint should probably advise to use
      ipcclean.
      
      The attached patch replaces all occurances of "ipcrm" with "ipcclean" in
      src/backend/utils/init/miscinit.c and all the translations in
      src/backend/po.
      
      While reviewing the patch, I noticed a likely typo in hr.po. While I
      don't
      speak Croatian, the translation seems to advise to use the "icpm(1)"
      command. I changed that to "ipcclean" too.
      
      Heikki Linnakangas
      1b000116
  4. 06 Jun, 2005 7 commits
  5. 05 Jun, 2005 11 commits
  6. 04 Jun, 2005 4 commits