1. 09 Jun, 2005 4 commits
    • 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 7 commits
    • Bruce Momjian's avatar
      Add pg_upgrade TODO.detail. · f54f142a
      Bruce Momjian authored
      f54f142a
    • Bruce Momjian's avatar
      Add TODO.detail: · 581a8c9f
      Bruce Momjian authored
      > * Allow major upgrades without dump/reload, perhaps using pg_upgrade
      >   [pg_upgrade]
      581a8c9f
    • Bruce Momjian's avatar
      d95fad64
    • Bruce Momjian's avatar
      Add pg_dump to TODO.detail. · 249880ff
      Bruce Momjian authored
      249880ff
    • Bruce Momjian's avatar
      Back out patch: · 24af7d4b
      Bruce Momjian authored
      ---------------------------------------------------------------------------
      
      Tom Lane <tgl@sss.pgh.pa.us> writes:
      > a_ogawa <a_ogawa@hi-ho.ne.jp> writes:
      > > It is a reasonable idea. However, the majority part of MemSet was not
      > > able to be avoided by this idea. Because the per-tuple contexts are used
      > > at the early stage of executor.
      >
      > Drat.  Well, what about changing that?  We could introduce additional
      > contexts or change the startup behavior so that the ones that are
      > frequently reset don't have any data in them unless you are working
      > with pass-by-ref values inside the inner loop.
      
      That might be possible. However, I think that we should change only
      aset.c about this article.
      I thought further: We can check whether context was used from the last
      reset even when blocks list is not empty. Please see attached patch.
      24af7d4b
    • Bruce Momjian's avatar
      Add comment for multi-byte computation. · 954108f9
      Bruce Momjian authored
      954108f9
    • Bruce Momjian's avatar
      · 72c53ac3
      Bruce Momjian authored
      Allow kerberos name and username case sensitivity to be specified from
      postgresql.conf.
      
      ---------------------------------------------------------------------------
      
      
      Here's an updated version of the patch, with the following changes:
      
      1) No longer uses "service name" as "application version". It's instead
      hardcoded as "postgres". It could be argued that this part should be
      backpatched to 8.0, but it doesn't make a big difference until you can
      start changing it with GUC / connection parameters. This change only
      affects kerberos 5, not 4.
      
      2) Now downcases kerberos usernames when the client is running on win32.
      
      3) Adds guc option for "krb_caseins_users" to make the server ignore
      case mismatch which is required by some KDCs such as Active Directory.
      Off by default, per discussion with Tom. This change only affects
      kerberos 5, not 4.
      
      4) Updated so it doesn't conflict with the rendevouz/bonjour patch
      already in ;-)
      
      Magnus Hagander
      72c53ac3