1. 10 Jan, 2007 6 commits
    • Tom Lane's avatar
      Change the planner-to-executor API so that the planner tells the executor · a191a169
      Tom Lane authored
      which comparison operators to use for plan nodes involving tuple comparison
      (Agg, Group, Unique, SetOp).  Formerly the executor looked up the default
      equality operator for the datatype, which was really pretty shaky, since it's
      possible that the data being fed to the node is sorted according to some
      nondefault operator class that could have an incompatible idea of equality.
      The planner knows what it has sorted by and therefore can provide the right
      equality operator to use.  Also, this change moves a couple of catalog lookups
      out of the executor and into the planner, which should help startup time for
      pre-planned queries by some small amount.  Modify the planner to remove some
      other cavalier assumptions about always being able to use the default
      operators.  Also add "nulls first/last" info to the Plan node for a mergejoin
      --- neither the executor nor the planner can cope yet, but at least the API is
      in place.
      a191a169
    • Neil Conway's avatar
      Attached patch fixes two problems: · 5f6d7353
      Neil Conway authored
      1) gendef works from inside visual studio - use a tempfile instead of
      redirection, because for some reason you can't redirect dumpbin from
      inside (patch from Joachim Wieland)
      2) gendef must process only *.obj, or you get weird errors in some build
      scenarios when it tries to process a logfile
      
      Magnus Hagander
      5f6d7353
    • Neil Conway's avatar
      This patch enables verbose output when building all projects. This is · 840df515
      Neil Conway authored
      the same output level that was used when building a single project
      before, and really needed to get reasonable information about what
      happens (non-verbose just says "starting build of foo" and "done
      building foo", more or less).
      
      Magnus Hagander
      840df515
    • Bruce Momjian's avatar
      25d64529
    • Bruce Momjian's avatar
    • Tatsuo Ishii's avatar
      Update copyright year · a733d281
      Tatsuo Ishii authored
      a733d281
  2. 09 Jan, 2007 15 commits
  3. 08 Jan, 2007 3 commits
    • Peter Eisentraut's avatar
      3a32ba2f
    • Tom Lane's avatar
      Tweak joinlist creation to avoid generating useless one-element subproblems · 19f9376b
      Tom Lane authored
      when collapsing of JOIN trees is stopped by join_collapse_limit.  For instance
      a list of 11 LEFT JOINs with limit 8 now produces something like
      	((1 2 3 4 5 6 7 8) 9 10 11 12)
      instead of
      	(((1 2 3 4 5 6 7 8) (9)) 10 11 12)
      The latter structure is really only required for a FULL JOIN.
      Noted while studying an example from Shane Ambler.
      19f9376b
    • Tom Lane's avatar
      Remove cost_hashjoin's very ancient hack to discourage (once, entirely forbid) · 9a9a143a
      Tom Lane authored
      hash joins with the estimated-larger relation on the inside.  There are
      several cases where doing that makes perfect sense, and in cases where it
      doesn't, the regular cost computation really ought to be able to figure that
      out.  Make some marginal tweaks in said computation to try to get results
      approximating reality a bit better.  Per an example from Shane Ambler.
      
      Also, fix an oversight in the original patch to add seq_page_cost: the costs
      of spilling a hash join to disk should be scaled by seq_page_cost.
      9a9a143a
  4. 07 Jan, 2007 4 commits
  5. 06 Jan, 2007 12 commits
    • Bruce Momjian's avatar
      Remove: · 324297df
      Bruce Momjian authored
      < * %Allow the identifier length to be increased via a configure option
      324297df
    • Bruce Momjian's avatar
      Updates for MONEY data type: · 06d00901
      Bruce Momjian authored
      < * Improve the MONEY data type
      > * -Make 64-bit version of the MONEY data type
      > * Add locale-aware MONEY type, and support multiple currencies
      <   Change the MONEY data type to use DECIMAL internally, with special
      <   locale-aware output formatting.
      <   http://archives.postgresql.org/pgsql-hackers/2006-09/msg01107.php
      06d00901
    • Bruce Momjian's avatar
      Done: · d23d19a1
      Bruce Momjian authored
      > * -Allow user-defined types to accept 'typmod' parameters
      d23d19a1
    • Bruce Momjian's avatar
      Add: · 94609f00
      Bruce Momjian authored
      >
      > * Make consistent use of long/short command options --- pg_ctl needs
      >   long ones, pg_config doesn't have short ones, postgres doesn't have
      >   enough long ones, etc.
      94609f00
    • Bruce Momjian's avatar
      Add: · 147f2e91
      Bruce Momjian authored
      > 	o Consider parsing the -c string into individual queries so each
      > 	  is run in its own transaction
      >
      > 	o Consider disallowing multiple queries in PQexec() as an
      > 	  additional barrier to SQL injection attacks
      147f2e91
    • Bruce Momjian's avatar
    • Bruce Momjian's avatar
      Already done in 8.2: · 282f7f2e
      Bruce Momjian authored
      < * Allow CREATE INDEX to take an additional parameter for use with
      <   special index types
      282f7f2e
    • Bruce Momjian's avatar
      Move INDEX inheritance out into a separate section: · bd87cd5f
      Bruce Momjian authored
      < * Allow inherited tables to inherit index, UNIQUE constraint, and primary
      <   key, foreign key
      < * UNIQUE INDEX on base column not honored on INSERTs/UPDATEs from
      <   inherited table:  INSERT INTO inherit_table (unique_index_col) VALUES
      <   (dup) should fail
      <
      <   The main difficulty with this item is the problem of creating an index
      <   that can span more than one table.
      <
      < * Allow SELECT ... FOR UPDATE on inherited tables
      > * Inheritance
      >
      > 	o Allow inherited tables to inherit indexes, UNIQUE constraints,
      > 	  and primary/foreign keys
      > 	o Honor UNIQUE INDEX on base column in INSERTs/UPDATEs
      > 	  on inherited table, e.g.  INSERT INTO inherit_table
      > 	  (unique_index_col) VALUES (dup) should fail
      >
      > 	  The main difficulty with this item is the problem of
      > 	  creating an index that can span multiple tables.
      >
      > 	o Allow SELECT ... FOR UPDATE on inherited tables
      >
      >
      >
      bd87cd5f
    • Bruce Momjian's avatar
      Done: · 9cfcfd7c
      Bruce Momjian authored
      > * -Allow the pg_xlog directory location to be specified during initdb
      9cfcfd7c
    • Bruce Momjian's avatar
      Allow initdb to specify the pg_xlog directory. · c3578a68
      Bruce Momjian authored
      Euler Taveira de Oliveira
      c3578a68
    • Peter Eisentraut's avatar
      Replace xmlroot with a properly functioning version that parses the value, · 19749fb0
      Peter Eisentraut authored
      sets the items, and serializes the value back (rather than adding an
      arbitrary number of XML preambles as before).
      
      The libxml memory management via palloc had to be disabled because it
      crashes when libxml tries to access memory that was helpfully freed
      earlier by PostgreSQL.  This needs further thought.
      19749fb0
    • Tom Lane's avatar
      Fix filtered_base_yylex() to save and restore base_yylval and base_yylloc · 063560bb
      Tom Lane authored
      properly when doing a lookahead.  The lack of this was causing various
      interesting misbehaviors when one tries to use "with" as a plain identifier.
      063560bb