1. 12 Feb, 2006 36 commits
    • Tom Lane's avatar
      Fix broken markup. · 1ac1526e
      Tom Lane authored
      1ac1526e
    • Bruce Momjian's avatar
      · 6e51bcef
      Bruce Momjian authored
      Back out patch pending review.
      
      ---------------------------------------------------------------------------
      
      >   I've now tested this patch at home w/ 8.2HEAD and it seems to fix the
      >   bug.  I plan on testing it under 8.1.2 at work tommorow with
      >   mod_auth_krb5, etc, and expect it'll work there.  Assuming all goes
      >   well and unless someone objects I'll forward the patch to -patches.
      >   It'd be great to have this fixed as it'll allow us to use Kerberos to
      >   authenticate to phppgadmin and other web-based tools which use
      >   Postgres.
      
        While playing with this patch under 8.1.2 at home I discovered a
        mistake in how I manually applied one of the hunks to fe-auth.c.
        Basically, the base code had changed and so the patch needed to be
        modified slightly.  This is because the code no longer either has a
        freeable pointer under 'name' or has 'name' as NULL.
      
        The attached patch correctly frees the string from pg_krb5_authname
        (where it had been strdup'd) if and only if pg_krb5_authname returned
        a string (as opposed to falling through and having name be set using
        name = pw->name;).  Also added a comment to this effect.
        Please review.
      
      Stephen Frost (sfrost@snowman.net) wrote:
      6e51bcef
    • Bruce Momjian's avatar
      > I've now tested this patch at home w/ 8.2HEAD and it seems to fix the · 3e682635
      Bruce Momjian authored
      >   bug.  I plan on testing it under 8.1.2 at work tommorow with
      >   mod_auth_krb5, etc, and expect it'll work there.  Assuming all goes
      >   well and unless someone objects I'll forward the patch to -patches.
      >   It'd be great to have this fixed as it'll allow us to use Kerberos to
      >   authenticate to phppgadmin and other web-based tools which use
      >   Postgres.
      
        While playing with this patch under 8.1.2 at home I discovered a
        mistake in how I manually applied one of the hunks to fe-auth.c.
        Basically, the base code had changed and so the patch needed to be
        modified slightly.  This is because the code no longer either has a
        freeable pointer under 'name' or has 'name' as NULL.
      
        The attached patch correctly frees the string from pg_krb5_authname
        (where it had been strdup'd) if and only if pg_krb5_authname returned
        a string (as opposed to falling through and having name be set using
        name = pw->name;).  Also added a comment to this effect.
        Please review.
      
      Stephen Frost (sfrost@snowman.net) wrote:
      3e682635
    • Bruce Momjian's avatar
      Support "" for thousands separator and plus sign in to_char(), per · 2cb61220
      Bruce Momjian authored
      report from French Debian user.  psql already handles "" fine.
      2cb61220
    • Bruce Momjian's avatar
      Remove LEFT part of JOIN to pg_roles because of optimizer limitation: · 05e27a9c
      Bruce Momjian authored
      > True, but they're not being used where you'd expect. This seems to be
      > something to do with the fact that it's not pg_authid which is being
      > accessed, but rather the view pg_roles.
      
      I looked into this and it seems the problem is that the view doesn't
      get flattened into the main query because of the has_nullable_targetlist
      limitation in prepjointree.c.  That's triggered because pg_roles has
              '********'::text AS rolpassword
      which isn't nullable, meaning it would produce wrong behavior if
      referenced above the outer join.
      
      Ultimately, the reason this is a problem is that the planner deals only
      in simple Vars while processing joins; it doesn't want to think about
      expressions.  I'm starting to think that it may be time to fix this,
      because I've run into several related restrictions lately, but it seems
      like a nontrivial project.
      
      In the meantime, reducing the LEFT JOIN to pg_roles to a JOIN as per
      Peter's suggestion seems like the best short-term workaround.
      05e27a9c
    • Bruce Momjian's avatar
      Update README file. · 7d57a182
      Bruce Momjian authored
      Joshua D. Drake
      7d57a182
    • Bruce Momjian's avatar
      Not done: · 3694e706
      Bruce Momjian authored
      > 	o %Allow ALTER TABLE ... ALTER CONSTRAINT ... RENAME
      3694e706
    • Bruce Momjian's avatar
      Revert patch becaues of locking concerns: · 04a2b54c
      Bruce Momjian authored
      Allow ALTER TABLE ... ALTER CONSTRAINT ... RENAME
      
      Joachim Wieland
      04a2b54c
    • Bruce Momjian's avatar
      > Actually, if you submit a patch that says either "SCROLL is the · 92a26489
      Bruce Momjian authored
      default"
      > or "NO SCROLL is the default", it will be rejected as incorrect.  The
      > reason is that the default behavior is different from either of these,
      > as is explained in the NOTES section.
      
      Ok, so *that's* where the bit about the query plan being simple enough.
      Based on that, ISTM that it should be premissable for us to decide that
      a cursor requiring a sort isn't "simple enough" to support SCROLL.
      
      In any case, here's a patch that makes the non-standard behavior easier
      for people to find.
      
      Jim C. Nasby
      92a26489
    • Bruce Momjian's avatar
      Fix release item ordering. · 0bbd4704
      Bruce Momjian authored
      0bbd4704
    • Bruce Momjian's avatar
      Update back branch release notes. · 6df2da06
      Bruce Momjian authored
      6df2da06
    • Bruce Momjian's avatar
      Fix release markup. · a321d675
      Bruce Momjian authored
      a321d675
    • Bruce Momjian's avatar
      Update release checlist. · 10d78c76
      Bruce Momjian authored
      10d78c76
    • Bruce Momjian's avatar
      Update for 8.1.3. · cffed790
      Bruce Momjian authored
      cffed790
    • Bruce Momjian's avatar
      Update release notes for 8.1.3. · 720bad3b
      Bruce Momjian authored
      720bad3b
    • Bruce Momjian's avatar
      21e567ba
    • Bruce Momjian's avatar
      When performing a parallel build (make -j N) with ./configure · a7dc90d9
      Bruce Momjian authored
      --enable-depend it often tries to create the .deps directory twice and
      bails out when it already exists due to a race condition of if doesn't
      exist, then create.  This patch prevents mkdir from returning an error.
      
      Kris Jurka
      a7dc90d9
    • Bruce Momjian's avatar
      List psql tab completion for various default keywords. · 79b95643
      Bruce Momjian authored
      Joachim Wieland
      79b95643
    • Bruce Momjian's avatar
      Done: · 20b50830
      Bruce Momjian authored
      > * -Add COMMENT ON for all cluster global objects (roles, databases
      20b50830
    • Tom Lane's avatar
      Apply code-reviewed version of for-scalar-list patch: mostly, fixing · 15c72174
      Tom Lane authored
      it to report reasonable errors in error cases.
      15c72174
    • Bruce Momjian's avatar
      Add MSVC support for utility commands and pg_dump. · 58634caa
      Bruce Momjian authored
      Hiroshi Saito
      58634caa
    • Bruce Momjian's avatar
      Allow PL/pgSQL FOR statement to return values to scalars as well as · 025ffe58
      Bruce Momjian authored
      records and row types.
      
      Pavel Stehule
      025ffe58
    • Bruce Momjian's avatar
      Use 0x01 for newlines in saved history. It was determined to be not · 18cbc7ae
      Bruce Momjian authored
      used by multi-byte sequences, but futher invesetigation might prove this
      to be false.
      18cbc7ae
    • Tom Lane's avatar
      Clean up plpgsql grammar to make sure that check_assignable() is applied · f7d98744
      Tom Lane authored
      consistently.  This is mostly cosmetic right at the moment because
      check_assignable() does nothing for ROW or RECORD datums, but that might
      not always be so.  This also syncs several different places that read
      INTO target lists.  They're just enough different that it seems
      impractical to factor them into a single routine, but they surely
      should be the same as much as possible.
      f7d98744
    • Bruce Momjian's avatar
      Done: · 136c3b87
      Bruce Momjian authored
      > * -Allow to_char() to print localized month names
      136c3b87
    • Bruce Momjian's avatar
      Allow to_char() to print localized month and day names. · f695750c
      Bruce Momjian authored
      Euler Taveira de Oliveira
      f695750c
    • Bruce Momjian's avatar
      As part of previous commit, add pg_restore option: · 3957cf6e
      Bruce Momjian authored
              -1 or --single-transaction
      
      Simon Riggs
      3957cf6e
    • Bruce Momjian's avatar
      Add psql option: · 0f57851e
      Bruce Momjian authored
      	-1 or --single-transaction
      
      Simon Riggs
      0f57851e
    • Bruce Momjian's avatar
      Done: · 3884ede6
      Bruce Momjian authored
      > * -Add system view to show free space map contents
      3884ede6
    • Bruce Momjian's avatar
      d5dd3d45
    • Tom Lane's avatar
      Fix more fallout from line-wrap patch, to wit, arbitrarily changing · 6c0d4aab
      Tom Lane authored
      the API of PQdsplen without bothering to fix its callers.  Although
      ReportSyntaxErrorPosition could probably do with more smarts about
      handling control characters, for the moment I'll just get it back to
      handling tabs consistently.
      6c0d4aab
    • Bruce Momjian's avatar
      I've created a new shared catalog table pg_shdescription to store · f9a726aa
      Bruce Momjian authored
      comments on cluster global objects like databases, tablespaces, and
      roles.
      
      It touches a lot of places, but not much in the way of big changes.  The
      only design decision I made was to duplicate the query and manipulation
      functions rather than to try and have them handle both shared and local
      comments.  I believe this is simpler for the code and not an issue for
      callers because they know what type of object they are dealing with.
      This has resulted in a shobj_description function analagous to
      obj_description and backend functions [Create/Delete]SharedComments
      mirroring the existing [Create/Delete]Comments functions.
      
      pg_shdescription.h goes into src/include/catalog/
      
      Kris Jurka
      f9a726aa
    • Tom Lane's avatar
      Undo changes of trailing space in recently-committed expected files. · 95dbf9c0
      Tom Lane authored
      This is mostly just over-compulsiveness on my part, but the exercise
      did reveal one real bug: errors.out has a space difference now where
      it should not.
      95dbf9c0
    • Tom Lane's avatar
      Restore previous psql behavior of not printing useless trailing spaces · 3f9d2edd
      Tom Lane authored
      after the data in the last column on a line.
      3f9d2edd
    • Bruce Momjian's avatar
      Please find enclosed a patch that lets you use \c to connect · 07bae9c0
      Bruce Momjian authored
      (optionally) to a new host and port without exiting psql.  This
      eliminates, IMHO, a surprise in that you can now connect to PostgreSQL
      on a differnt machine from the one where you started your session. This
      should help people who use psql as an administrative tool.
      
      David Fetter
      07bae9c0
    • Tom Lane's avatar
      Actually there's a better way to do this, which is to count tuples · d52a57fc
      Tom Lane authored
      during the vacuumcleanup scan that we're going to do anyway.  Should
      save a few cycles (one calculation per page, not per tuple) as well
      as not having to depend on assumptions about heap and index being
      in step.
      I think this could probably be made to work for GIST too, but that
      code looks messy enough that I'm disinclined to try right now.
      d52a57fc
  2. 11 Feb, 2006 4 commits
    • Tom Lane's avatar
      Skip ambulkdelete scan if there's nothing to delete and the index is not · fd267c1e
      Tom Lane authored
      partial.  None of the existing AMs do anything useful except counting
      tuples when there's nothing to delete, and we can get a tuple count
      from the heap as long as it's not a partial index.  (hash actually can
      skip anyway because it maintains a tuple count in the index metapage.)
      GIST is not currently able to exploit this optimization because, due to
      failure to index NULLs, GIST is always effectively partial.  Possibly
      we should fix that sometime.
      Simon Riggs w/ some review by Tom Lane.
      fd267c1e
    • Bruce Momjian's avatar
      Allow ALTER TABLE ... ALTER CONSTRAINT ... RENAME · a02f6ce3
      Bruce Momjian authored
      Joachim Wieland
      a02f6ce3
    • Bruce Momjian's avatar
      Done: · 3fcb38f0
      Bruce Momjian authored
      > 	o -Allow ALTER TABLE ... ALTER CONSTRAINT ... RENAME
      3fcb38f0
    • Bruce Momjian's avatar
      Done: · 97d37b7a
      Bruce Momjian authored
      < 	o Improve psql's handling of multi-line statements
      > 	o -Improve psql's handling of multi-line statements
      97d37b7a