1. 28 Dec, 2005 1 commit
    • Bruce Momjian's avatar
      Done: · 1b184c99
      Bruce Momjian authored
      < * %Make row-wise comparisons work per SQL spec
      > * -Make row-wise comparisons work per SQL spec
      1b184c99
  2. 26 Dec, 2005 1 commit
    • Bruce Momjian's avatar
      Add: · 5c9a46f6
      Bruce Momjian authored
      * %Make row-wise comparisons work per SQL spec
      
        Right now, '(a, b) < (1, 2)' is processed as 'a < 1 and b < 2', but
        the SQL standard requires it to be processed as a column-by-column
        comparison, so the proper comparison is '(a < 1) OR (a = 1 AND b < 2)'.
      5c9a46f6
  3. 22 Dec, 2005 1 commit
    • Bruce Momjian's avatar
      Update item: · 2f1a78e2
      Bruce Momjian authored
      >
      >   A more complex solution would be to save multiple plans for different
      >   cardinality and use the appropriate plan based on the EXECUTE values.
      >
      2f1a78e2
  4. 17 Dec, 2005 7 commits
    • Bruce Momjian's avatar
      Remove item: · 25af534e
      Bruce Momjian authored
      < * Allow star join optimizations
      <
      <   While our bitmap scan allows multiple indexes to be joined to get
      <   to heap rows, a star joins allows multiple dimension _tables_ to
      <   be joined to index into a larger main fact table.  The join is
      <   usually performed by either creating a cartesian product of all
      <   the dimmension tables and doing a single join on that product or
      <   using subselects to create bitmaps of each dimmension table match
      <   and merge the bitmaps to perform the join on the fact table.  Some
      <   of these algorithms might be patented.
      25af534e
    • Bruce Momjian's avatar
      Update: · 3282b633
      Bruce Momjian authored
      < * Flush cached query plans when the dependent objects change or
      <   when the cardinality of parameters changes dramatically
      > * Flush cached query plans when the dependent objects change,
      >   when the cardinality of parameters changes dramatically, or
      >   when new ANALYZE statistics are available
      3282b633
    • Bruce Momjian's avatar
      Add mention of possible patent problems with star joins, per Joshua · 16843ba3
      Bruce Momjian authored
      Drake:
      
      <   and merge the bitmaps to perform the join on the fact table.
      >   and merge the bitmaps to perform the join on the fact table.  Some
      >   of these algorithms might be patented.
      16843ba3
    • Bruce Momjian's avatar
      Add: · 9e9a844f
      Bruce Momjian authored
      * Allow star join optimizations
      
        While our bitmap scan allows multiple indexes to be joined to get
        to heap rows, a star joins allows multiple dimension _tables_ to
        be joined to index into a larger main fact table.  The join is
        usually performed by either creating a cartesian product of all
        the dimmension tables and doing a single join on that product or
        using subselects to create bitmaps of each dimmension table match
        and merge the bitmaps to perform the join on the fact table.
      9e9a844f
    • Bruce Momjian's avatar
      Add more function to TODO: · 927f5768
      Bruce Momjian authored
      < * %Add pg_get_acldef(), pg_get_typedefault(), and pg_get_attrdef()
      > * %Add pg_get_acldef(), pg_get_typedefault(), pg_get_attrdef(),
      >   pg_get_tabledef(), pg_get_domaindef(), pg_get_functiondef()
      927f5768
    • Bruce Momjian's avatar
      Update: · eae75beb
      Bruce Momjian authored
      < * Flush cached query plans when the dependent objects change
      > * Flush cached query plans when the dependent objects change or
      >   when the cardinality of parameters changes dramatically
      eae75beb
    • Bruce Momjian's avatar
      Add: · 56ea9ad1
      Bruce Momjian authored
      > * Allow the count returned by SELECT, etc to be to represent as an int64
      >   to allow a higher range of values
      56ea9ad1
  5. 16 Dec, 2005 1 commit
  6. 12 Dec, 2005 1 commit
    • Bruce Momjian's avatar
      Update wording, query -> statement: · baf4e187
      Bruce Momjian authored
      < * %Allow pooled connections to list all prepared queries
      > * %Allow pooled connections to list all prepared statements
      28c28
      <   the queries prepared in the current session.
      >   the statements prepared in the current session.
      143c143
      < 	  o Allow a warm standby system to also allow read-only queries
      > 	  o Allow a warm standby system to also allow read-only statements
      404c404
      < * Add GUC to issue notice about queries that use unjoined tables
      > * Add GUC to issue notice about statements that use unjoined tables
      490c490
      < 	  Another idea would be to allow actual SELECT queries in a COPY.
      > 	  Another idea would be to allow actual SELECT statements in a COPY.
      554c554
      < 	o Allow function argument names to be queries from PL/PgSQL
      > 	o Allow function argument names to be statements from PL/PgSQL
      591c591
      < 	o Improve psql's handling of multi-line queries
      > 	o Improve psql's handling of multi-line statements
      < 	  Currently, while \e saves a single query as one entry, interactive
      < 	  queries are saved one line at a time.  Ideally all queries
      > 	  Currently, while \e saves a single statement as one entry, interactive
      > 	  statements are saved one line at a time.  Ideally all statements
      665c665
      < 	o Allow query results to be automatically batched to the client
      > 	o Allow statement results to be automatically batched to the client
      667c667
      < 	  Currently, all query results are transfered to the libpq
      > 	  Currently, all statement results are transfered to the libpq
      672c672
      < 	  One complexity is that a query like SELECT 1/col could error
      > 	  One complexity is that a statement like SELECT 1/col could error
      739c739
      < * Allow queries across databases or servers with transaction
      > * Allow statements across databases or servers with transaction
      <   inheritance, allow it to work for UPDATE and DELETE queries, and allow
      <   it to be used for all queries with little performance impact
      >   inheritance, allow it to work for UPDATE and DELETE statements, and allow
      >   it to be used for all statements with little performance impact
      876c876
      < * Consider automatic caching of queries at various levels:
      > * Consider automatic caching of statements at various levels:
      947c947
      <   a single session using multiple threads to execute a query faster.
      >   a single session using multiple threads to execute a statement faster.
      1025c1025
      < * Log queries where the optimizer row estimates were dramatically
      > * Log statements where the optimizer row estimates were dramatically
      1146c1146
      < 	  of result sets using new query protocol
      > 	  of result sets using new statement protocol
      baf4e187
  7. 11 Dec, 2005 1 commit
    • Bruce Momjian's avatar
      Remove item: · c1059314
      Bruce Momjian authored
      < * Add GUC variable to run a command on database panic or
      <   smart/fast/immediate shutdown
      c1059314
  8. 09 Dec, 2005 2 commits
    • Bruce Momjian's avatar
      Done: · ecf4df61
      Bruce Momjian authored
      < * Allow installing to directories containing spaces
      > * -Allow installing to directories containing spaces
      ecf4df61
    • Bruce Momjian's avatar
      Completed: · 07044f5d
      Bruce Momjian authored
      * -Have initdb set the input DateStyle (MDY or DMY) based on locale
      07044f5d
  9. 08 Dec, 2005 2 commits
    • Bruce Momjian's avatar
      Add Teodor: · d22ec676
      Bruce Momjian authored
      > * Teodor is Teodor Sigaev <teodor@sigaev.ru>
      d22ec676
    • Bruce Momjian's avatar
      Remove a few people: · 0fba659e
      Bruce Momjian authored
      < * Claudio is Claudio Natoli <claudio.natoli@memetrics.com>
      1166d1164
      < * Hiroshi is Hiroshi Inoue <Inoue@tpf.co.jp>
      0fba659e
  10. 07 Dec, 2005 1 commit
    • Bruce Momjian's avatar
      Update: · 10a2df28
      Bruce Momjian authored
      <   at initdb time or optionally later.
      >   at initdb time or optionally later.  Consider O_SYNC when
      >   O_DIRECT exists.
      10a2df28
  11. 06 Dec, 2005 1 commit
    • Bruce Momjian's avatar
      Add: · 371879ca
      Bruce Momjian authored
      > * Add GUC variable to run a command on database panic or
      >   smart/fast/immediate shutdown
      371879ca
  12. 04 Dec, 2005 4 commits
    • Bruce Momjian's avatar
      Update: · 99552287
      Bruce Momjian authored
      < 	  Win32 API, and we have to make sure MinGW handles it.
      > 	  Win32 API, and we have to make sure MinGW handles it.  Another
      > 	  option is to wait for the MinGW project to fix it, or use the
      > 	  code from the LibGW32C project as a guide.
      99552287
    • Bruce Momjian's avatar
      Add: · 8752479d
      Bruce Momjian authored
      > 	o Add long file support for binary pg_dump output
      >
      > 	  While Win32 supports 64-bit files, the MinGW API does not,
      > 	  meaning we have to build an fseeko replacement on top of the
      > 	  Win32 API, and we have to make sure MinGW handles it.
      8752479d
    • Bruce Momjian's avatar
      Add: · bedb5fc3
      Bruce Momjian authored
      > * Add SPI_gettypmod() to return the typemod for a TupleDesc
      bedb5fc3
    • Bruce Momjian's avatar
      Add for autovacuum: · 49bbff0f
      Bruce Momjian authored
      > 	o Consider logging activity either to the logs or a system view
      49bbff0f
  13. 03 Dec, 2005 1 commit
    • Bruce Momjian's avatar
      Item removed: · eb339c78
      Bruce Momjian authored
      < * Add function to return the thread safety status of libpq and ecpg
      eb339c78
  14. 02 Dec, 2005 2 commits
    • Bruce Momjian's avatar
      Remove idea of increasing NUMERIC length: · 5ab25988
      Bruce Momjian authored
      < * Change NUMERIC to enforce the maximum precision, and increase it
      > * Change NUMERIC to enforce the maximum precision
      5ab25988
    • Bruce Momjian's avatar
      Add calcluation of bitmap storage capacity. · 9322a047
      Bruce Momjian authored
      <   be cleared when a heap tuple is expired.  Another idea is to maintain
      <   a bitmap of heap pages where all rows are visible to all backends,
      <   and allow index lookups to reference that bitmap to avoid heap
      <   lookups, perhaps the same bitmap we might add someday to determine
      <   which heap pages need vacuuming.
      >   be cleared when a heap tuple is expired.
      >
      >   Another idea is to maintain a bitmap of heap pages where all rows
      >   are visible to all backends, and allow index lookups to reference
      >   that bitmap to avoid heap lookups, perhaps the same bitmap we might
      >   add someday to determine which heap pages need vacuuming.  Frequently
      >   accessed bitmaps would have to be stored in shared memory.  One 8k
      >   page of bitmaps could track 512MB of heap pages.
      9322a047
  15. 01 Dec, 2005 3 commits
    • Bruce Momjian's avatar
      Add all heap page rows visible bitmap idea: · 113ece8f
      Bruce Momjian authored
      <   the heap.  One way to allow this is to set a bit to index tuples
      >   the heap.  One way to allow this is to set a bit on index tuples
      <   be cleared when a heap tuple is expired.
      <
      >   be cleared when a heap tuple is expired.  Another idea is to maintain
      >   a bitmap of heap pages where all rows are visible to all backends,
      >   and allow index lookups to reference that bitmap to avoid heap
      >   lookups, perhaps the same bitmap we might add someday to determine
      >   which heap pages need vacuuming.
      113ece8f
    • Bruce Momjian's avatar
      Add MERGE TODO.detail: · 915fb7f6
      Bruce Momjian authored
      >   [merge]
      378a380
      >   [merge]
      915fb7f6
    • Bruce Momjian's avatar
      Split out MERGE and REPLACE/UPSERT items. · 24e1a045
      Bruce Momjian authored
      < * Add MERGE command that does UPDATE/DELETE, or on failure, INSERT (rules,
      <   triggers?)
      > * Add SQL-standard MERGE command, typically used to merge two tables
      >
      >   This is similar to UPDATE, then for unmatched rows, INSERT.
      >   Whether concurrent access allows modifications which could cause
      >   row loss is implementation independent.
      >
      > * Add REPLACE or UPSERT command that does UPDATE, or on failure, INSERT
      24e1a045
  16. 29 Nov, 2005 2 commits
  17. 28 Nov, 2005 1 commit
    • Bruce Momjian's avatar
      Add: · a4371a68
      Bruce Momjian authored
      > * Allow COMMENT ON to accept an expression rather than just a string
      a4371a68
  18. 24 Nov, 2005 2 commits
  19. 22 Nov, 2005 2 commits
    • Bruce Momjian's avatar
      Done: · ce1d8293
      Bruce Momjian authored
      > 	o -Allow NULLs in arrays
      ce1d8293
    • Bruce Momjian's avatar
      Add: · c28c00ec
      Bruce Momjian authored
      >
      > * Add estimated_count(*) to return an estimate of COUNT(*)
      >
      >   This would use the planner ANALYZE statistatics to return an estimated
      >   count.
      c28c00ec
  20. 16 Nov, 2005 2 commits
    • Bruce Momjian's avatar
      Update, add mention of user locking table before MERGE: · 84bb3876
      Bruce Momjian authored
      <   so duplicate checking can be easily performed.
      >   so duplicate checking can be easily performed.  It is possible to
      >   do it without a unique index if we require the user to LOCK the table
      >   before the MERGE.
      84bb3876
    • Bruce Momjian's avatar
      Add batch mode, make new libpq section: · 01798a06
      Bruce Momjian authored
      < * Add a libpq function to support Parse/DescribeStatement capability
      < * Add PQescapeIdentifier() to libpq
      < * Prevent PQfnumber() from lowercasing unquoted the column name
      <
      <   PQfnumber() should never have been doing lowercasing, but historically
      <   it has so we need a way to prevent it
      <
      648a642,661
      >
      >
      > libpq
      >
      > 	o Add a function to support Parse/DescribeStatement capability
      > 	o Add PQescapeIdentifier()
      > 	o Prevent PQfnumber() from lowercasing unquoted the column name
      >
      > 	  PQfnumber() should never have been doing lowercasing, but
      > 	  historically it has so we need a way to prevent it
      >
      > 	o Allow query results to be automatically batched to the client
      >
      > 	  Currently, all query results are transfered to the libpq
      > 	  client before libpq makes the results available to the
      > 	  application.  This feature would allow the application to make
      > 	  use of the first result rows while the rest are transfered, or
      > 	  held on the server waiting for them to be requested by libpq.
      > 	  One complexity is that a query like SELECT 1/col could error
      > 	  out mid-way through the result set.
      01798a06
  21. 15 Nov, 2005 1 commit
    • Bruce Momjian's avatar
      Update MERGE: · 698ee9c3
      Bruce Momjian authored
      >
      >   To implement this cleanly requires that the table have a unique index
      >   so duplicate checking can be easily performed.
      >
      698ee9c3
  22. 27 Oct, 2005 1 commit
    • Bruce Momjian's avatar
      Update: · bc93b374
      Bruce Momjian authored
      < 	o Allow ALTER TABLE RENAME CONSTRAINT
      > 	o Add ALTER TABLE RENAME CONSTRAINT, update index name also
      bc93b374