Commit Graph

  • 448ca1fe0b Update Japanese FAQ, from Jun Kuwamura Bruce Momjian 2002-06-04 05:12:21 +00:00
  • 31cd5355ee Document that SM_* variables should be longer. Bruce Momjian 2002-06-03 22:57:47 +00:00
  • e3c1609df3 Update as done: Bruce Momjian 2002-06-03 22:46:09 +00:00
  • b48b4ab48e fixed bug reported by Noel Rappin (nrappin@sockeye.com) java Array type handled Timestamps incorrectly Barry Lind 2002-06-03 17:52:05 +00:00
  • 07cc12b833 Remove NOCREATE patch from TODO.detail. Bruce Momjian 2002-06-03 17:45:19 +00:00
  • e0faed4bee Small patch to correct the default arraysize associated with the Cursor object's fetchmany() method. The API and inline documentation state that the default is 1. It currently defaults to 5. Bruce Momjian 2002-06-03 17:42:11 +00:00
  • cc574c4482 Update index growth problem. Bruce Momjian 2002-06-03 17:41:37 +00:00
  • e301b855d1 The attached patch fixes a typo in the documentation for SET CONSTRAINTS. Bruce Momjian 2002-06-03 01:10:38 +00:00
  • 416fcd9dba Mention SM_USER should be the same size as the others. Bruce Momjian 2002-06-03 01:05:45 +00:00
  • de1f32efc1 Add PQescapeString and PQescapeBytea for Win32. Bruce Momjian 2002-06-02 22:36:30 +00:00
  • 85af3be5e2 Remove mention of timestamp() in SGML docs; doesn't exist anymore. Bruce Momjian 2002-06-02 21:56:09 +00:00
  • 6bb39991da Allow pod2man 5.005p3 to work with our current sources. Bruce Momjian 2002-06-02 21:37:26 +00:00
  • bf886d5baf Add section explaining unspecified expression evaluation order. Peter Eisentraut 2002-06-01 20:56:55 +00:00
  • 1731048c12 Indent verbatim environments. Peter Eisentraut 2002-06-01 20:56:00 +00:00
  • 50b7148218 Mention btree: Bruce Momjian 2002-06-01 19:53:31 +00:00
  • 17adf80b47 Fix timestamp to date conversion for the case where timestamp uses a double precision storage format. Previously applied the same math as used for the 64-bit integer storage format case, which was wrong. Problem introduced recently when the 64-bit storage format was implemented. Thomas G. Lockhart 2002-06-01 15:52:15 +00:00
  • 606db06f83 Improve manual's discussion of locking and MVCC. Tom Lane 2002-05-30 20:45:18 +00:00
  • 3dd13ffd95 small fix to testExportedKeys Dave Cramer 2002-05-30 16:39:26 +00:00
  • 1ffd044af7 added imported/exported key testDatabaseMetaDataTest.java Dave Cramer 2002-05-30 16:26:55 +00:00
  • 970ff81e2f Add a note about the interpretation of amcanmulticol and amindexnulls: a multicolumn-capable index AM *must* support nulls in index columns after the first one. Tom Lane 2002-05-29 17:36:40 +00:00
  • 9ca89b4f8c Another place that needs schema qualification. Tom Lane 2002-05-29 01:49:57 +00:00
  • 49bf04ba8c Fix some more not-schema-aware queries in pg_dump. Also fix some places that would do the wrong thing with BLOB OIDs exceeding 2G. Tom Lane 2002-05-29 01:38:56 +00:00
  • dc20063e43 Remove 32-bit mention: Bruce Momjian 2002-05-29 00:44:11 +00:00
  • 75c93c0a68 Rearrange LOG_CONNECTIONS code so that two log messages are made: one immediately upon forking to handle a new connection, and one after the authentication cycle is finished. Per today's pggeneral discussion. Tom Lane 2002-05-28 23:56:51 +00:00
  • 36a1e732a6 Rework pg_dump namespace search criteria so that dumping of user objects having names conflicting with system objects will work --- the search path is now user-schema, pg_catalog rather than implicitly the other way around. Note this requires being careful to explicitly qualify references to system names whenever pg_catalog is not first in the search path. Also, add support for dumping ACLs of schemas. Tom Lane 2002-05-28 22:26:57 +00:00
  • 5a8ab29adf Queries used by ruleutils were not schema-proof. Tom Lane 2002-05-28 22:16:15 +00:00
  • e80d6a1bac In default nextval('foo') expression for a SERIAL column, use double quotes only when necessary. Tom Lane 2002-05-28 22:15:42 +00:00
  • 7662419f1b Change PL/Perl and Pg interface build to use configured compiler and Makefile.shlib system, not MakeMaker. Peter Eisentraut 2002-05-28 16:57:53 +00:00
  • b81737bfa8 Repair incorrect dumping of user-defined aggregate with null initcond. (Already fixed in current, but need a patch for 7.2.2.) Tom Lane 2002-05-28 15:40:36 +00:00
  • efe861c855 Fix a bug with building rtree_gist indexes. Patch from Teodor Sigaev. Tom Lane 2002-05-28 15:25:03 +00:00
  • de1f586f09 Fix a bug with building rtree_gist indexes. Patch from Teodor Sigaev. Tom Lane 2002-05-28 15:24:53 +00:00
  • 5b792153fc Repair error with not adjusting active scans properly after gistSplit. Patch from Teodor Sigaev. Tom Lane 2002-05-28 15:22:44 +00:00
  • a71a53079c Repair error with not adjusting active scans properly after gistSplit. Patch from Teodor Sigaev. Tom Lane 2002-05-28 15:22:33 +00:00
  • 6005c50fa6 Update: Bruce Momjian 2002-05-28 01:06:23 +00:00
  • d15b1e1791 Update dblink to work with qualified relation names. From Joe Conway. Tom Lane 2002-05-27 21:59:12 +00:00
  • 3212cf9417 Distinguish between MaxHeapAttributeNumber and MaxTupleAttributeNumber, where the latter is made slightly larger to allow for in-memory tuples containing resjunk attributes. Responds to today's complaint that one cannot UPDATE a table containing the allegedly-legal maximum number of columns. Tom Lane 2002-05-27 19:53:33 +00:00
  • 3cde085158 Add Bruce Momjian 2002-05-25 22:44:13 +00:00
  • 4d567013cf Remove AMI_OVERRIDE tests from tqual.c routines; they aren't necessary and just slow down normal operations (only fractionally, but a cycle saved is a cycle earned). Improve documentation of AMI_OVERRIDE behavior. Tom Lane 2002-05-25 20:00:12 +00:00
  • 29737d83d9 AlterDatabaseSet() forgot to update the indexes on pg_database. Tom Lane 2002-05-25 16:30:59 +00:00
  • 6e675d278a Fix coding error in UTF conversion. Tom Lane 2002-05-24 21:04:34 +00:00
  • 07be59805b Add 'volatile' to suppress gcc warning. Not sure why this warning wasn't seen before, maybe the Tcl compiler flags were less strict. Tom Lane 2002-05-24 19:58:04 +00:00
  • de09da547a Wups, managed to break ANALYZE with one aspect of that heap_fetch change. Tom Lane 2002-05-24 19:52:43 +00:00
  • 3f4d488022 Mark index entries "killed" when they are no longer visible to any transaction, so as to avoid returning them out of the index AM. Saves repeated heap_fetch operations on frequently-updated rows. Also detect queries on unique keys (equality to all columns of a unique index), and don't bother continuing scan once we have found first match. Tom Lane 2002-05-24 18:57:57 +00:00
  • 2f2d05763d Change PL/Tcl build to use configured compiler and Makefile.shlib system, not Tcl-provided one. Peter Eisentraut 2002-05-24 18:10:17 +00:00
  • c0fdec2b6a Add $(LDFLAGS) to Windows make rule for postgres executable. Needed to do profiling on Cygwin, per report from Dave Page. Tom Lane 2002-05-22 21:46:40 +00:00
  • a2597ef179 Modify sequence state storage to eliminate dangling-pointer problem exemplified by bug #671. Moving the storage to relcache turned out to be a bad idea because relcache might decide to discard the info. Instead, open and close the relcache entry on each sequence operation, and use a record of the current XID to discover whether we already hold AccessShareLock on the sequence. Tom Lane 2002-05-22 21:40:55 +00:00
  • b8ffc99602 Minor kibitzing. Tom Lane 2002-05-22 18:33:15 +00:00
  • 63448825fb Make RelationForgetRelation error out if the relcache entry has nonzero reference count. This avoids leaving dangling pointers around, as in recent bug report against sequences (bug# 671). Tom Lane 2002-05-22 17:29:45 +00:00
  • d60f10b0e7 Add optional "validator" function to languages that can validate the function body (and other properties) as a function in the language is created. This generalizes ad hoc code that already existed for the built-in languages. Peter Eisentraut 2002-05-22 17:21:02 +00:00
  • df9c8e1a39 Make RelationForgetRelation error out if the relcache entry has nonzero reference count. This avoids leaving dangling pointers around, as in recent bug report against sequences (bug# 671). Tom Lane 2002-05-22 15:57:40 +00:00
  • 0352e3a783 Un-break table creation. Tom Lane 2002-05-22 15:35:43 +00:00
  • a3519a2fcc Allow CREATE VIEW as SELECT CTID, .... SELECT currtid( a view, ..). Hiroshi Inoue 2002-05-22 07:46:58 +00:00
  • 79420840ee 1) Support Keyset Driven driver cursors. 2) Supprt ARD precision/scale and SQL_C_NUEMRIC. 3) Minimal implementation of SQLGetDiagField(). 4) SQLRowCount() reports the result of SQLSetPos and SQLBulkOperation. 5) int8 -> SQL_NUMERIC for Microsoft Jet. 6) Support isolation level change. 7) ODBC3.0 SQLSTATE code. 8) Append mode log files. Hiroshi Inoue 2002-05-22 05:51:03 +00:00
  • 6c6f395a8a Since COPY fires triggers, it seems like a good idea for it to use a frozen (copied) snapshot too. Move execMain's snapshot copying code out into a subroutine in case we find other places that need it. Tom Lane 2002-05-21 22:59:01 +00:00
  • 26fcd25c57 Remove SetQuerySnapshot() from FETCH processing. No longer necessary or appropriate, since the snapshot that will be used by the cursor was frozen when ExecutorStart was run for it. Tom Lane 2002-05-21 22:18:08 +00:00
  • 959e61e917 Remove global variable scanCommandId in favor of storing a command ID in snapshots, per my proposal of a few days ago. Also, tweak heapam.c routines (heap_insert, heap_update, heap_delete, heap_mark4update) to be passed the command ID to use, instead of doing GetCurrentCommandID. For catalog updates they'll still get passed current command ID, but for updates generated from the main executor they'll get passed the command ID saved in the snapshot the query is using. This should fix some corner cases associated with functions and triggers that advance current command ID while an outer query is still in progress. Tom Lane 2002-05-21 22:05:55 +00:00
  • 0a2682445e Spell long option with -c not --, for compatibility's sake. Tom Lane 2002-05-21 19:06:00 +00:00
  • ce362bf8be Repair OPEN cursor(args), which I broke on 11/29/01 with a change to be smarter about parentheses in read_sql_construct(). Sigh. Tom Lane 2002-05-21 18:50:18 +00:00
  • 38f5fdb1e9 Repair OPEN cursor(args), which I broke on 11/29/01 with a change to be smarter about parentheses in read_sql_construct(). Sigh. Tom Lane 2002-05-21 18:50:16 +00:00
  • 44fbe20d62 Restructure indexscan API (index_beginscan, index_getnext) per yesterday's proposal to pghackers. Also remove unnecessary parameters to heap_beginscan, heap_rescan. I modified pg_proc.h to reflect the new numbers of parameters for the AM interface routines, but did not force an initdb because nothing actually looks at those fields. Tom Lane 2002-05-20 23:51:44 +00:00
  • c961474c96 Mark as done: Bruce Momjian 2002-05-20 22:22:27 +00:00
  • 7f660adeb1 - Fixed some parser bugs. - Removed some simple rules to work arounf bison limit for now. - Update c_keywords.c to reflect changes in keywords.c. Michael Meskes 2002-05-20 09:29:41 +00:00
  • 0d7c58a977 Update docs about new -N option Tatsuo Ishii 2002-05-20 05:07:28 +00:00
  • f35ced3de9 - Fixed reduce/reduce conflict in parser. - Synced preproc.y with gram.y. - Synced pgc.l with scan.l. - Synced keywords.c. Michael Meskes 2002-05-19 20:00:53 +00:00
  • f76bc9c776 Reorder keyword token declarations alphabetically. Status of the keywords in the various standards can be found in the documentation these days. Peter Eisentraut 2002-05-19 15:16:55 +00:00
  • 13cd9eb9b8 Remove bitrotten view_perms test. Add some similar test cases to privileges test. Peter Eisentraut 2002-05-19 15:13:20 +00:00
  • c88540fb0e Dump privileges on functions, aggregates, languages. Peter Eisentraut 2002-05-19 10:08:25 +00:00
  • dd9af92c41 Add display of sort keys to the default EXPLAIN output. Tom Lane 2002-05-18 21:38:41 +00:00
  • a5b370943e Teach query_tree_walker, query_tree_mutator, and SS_finalize_plan to process function RTE expressions, which they were previously missing. This allows outer-Var references and subselects to work correctly in the arguments of a function RTE. Install check to prevent function RTEs from cross-referencing Vars of sibling FROM-items, which doesn't make any sense (if you want to join, write a JOIN or WHERE clause). Tom Lane 2002-05-18 18:49:41 +00:00
  • 2c50f6344b Revise command completion tags as per hackers message on 20 March. Peter Eisentraut 2002-05-18 15:44:48 +00:00
  • e8ac187c68 Allow functions to be executed with the privileges of the function owner. I took the opportunity to remove the pg_proc.proistrusted field. Peter Eisentraut 2002-05-18 13:48:01 +00:00
  • 51fd22abdd Change set_plan_references and join_references to take an rtable List rather than a Query node; this allows set_plan_references to recurse into subplans correctly. Fixes core dump on full outer joins in subplans. Also, invoke preprocess_expression on function RTEs' function expressions. This seems to fix the planner's problems with outer-level Vars in function RTEs. Tom Lane 2002-05-18 02:25:50 +00:00
  • 0a757154bd Add missing fix_expr_references() step for the funcexpr of a FunctionScan plan node. Tom Lane 2002-05-18 00:42:55 +00:00
  • 22d641a7d4 Get rid of the last few uses of typeidTypeName() rather than format_type_be() in error messages. Tom Lane 2002-05-17 22:35:13 +00:00
  • 940f772a29 Support temporary setting of search path during CREATE SCHEMA; this allows the example in the CREATE SCHEMA ref page to actually work now. Also, clean up when the transaction that initially creates a temp-table namespace is later aborted. Simplify internal representation of search path by folding special cases into the main list. Tom Lane 2002-05-17 20:53:33 +00:00
  • 5f21560ae8 Dept. of second thoughts: interaction between DoIt and makeDepend in set_config_option wasn't quite right. Also clean up a couple other things that could have been done better. Tom Lane 2002-05-17 20:32:29 +00:00
  • 94bdc4855c Extend syntax of CREATE FUNCTION to resemble SQL99. Peter Eisentraut 2002-05-17 18:32:52 +00:00
  • 97f7ceaaa6 Guard against empty-string results from pg_getlocale. Tom Lane 2002-05-17 02:20:26 +00:00
  • f0811a74b3 Merge the last few variable.c configuration variables into the generic GUC support. It's now possible to set datestyle, timezone, and client_encoding from postgresql.conf and per-database or per-user settings. Also, implement rollback of SET commands that occur in a transaction that later fails. Create a SET LOCAL var = value syntax that sets the variable only for the duration of the current transaction. All per previous discussions in pghackers. Tom Lane 2002-05-17 01:19:19 +00:00
  • fa613fa1ea Fix obsolete statement about permissions on COPY ref page, and confusion about TO/FROM direction in several places. Tom Lane 2002-05-14 18:47:58 +00:00
  • 490b12d53e Remove unnecessary pfree's in geometric operators. At least one of these is actively dangerous, per bug report from Ewald Geschwinde 14-May-02, and several of the rest look suspicious to me. Since there is no longer any significant value in retail pfree's in these functions, just get rid of all of them for safety's sake. Tom Lane 2002-05-14 18:16:54 +00:00
  • cbd3b97e5a Remove unnecessary pfree's in geometric operators. At least one of these is actively dangerous, per bug report from Ewald Geschwinde 14-May-02, and several of the rest look suspicious to me. Since there is no longer any significant value in retail pfree's in these functions, just get rid of all of them for safety's sake. Tom Lane 2002-05-14 18:16:51 +00:00
  • cc2ce83633 Fix lookup tables used for rounding interval data values when not using integer datetimes. Thanks to Tom Lane for spotting the problem. Thomas G. Lockhart 2002-05-14 13:37:27 +00:00
  • 5c4e5aa3ff Make regression tests locale-proof by setting some locale categories to C at run-time, and providing alternative output files for different sort orders. Peter Eisentraut 2002-05-14 13:05:43 +00:00
  • cd61650f89 Fix bug in psql. Tatsuo Ishii 2002-05-14 04:20:15 +00:00
  • e25c93c7eb fixed problem connecting to server with client_min_messages set to debug. The code was not expecting to receive notice messages during the connection handshake. Barry Lind 2002-05-14 03:00:35 +00:00
  • 964f1fa734 Fix bug in pg_dump and psql (to reproduce the bug, just try pg_dump --nonexistingoption). Tatsuo Ishii 2002-05-14 02:08:22 +00:00
  • ef9db25a7e Fix typo in _copyAlterUserSetStmt. Tom Lane 2002-05-13 20:39:43 +00:00
  • c5741a448e AVG probably shouldn't be upper case here, considering that we don't upcase the others. Tom Lane 2002-05-13 19:22:06 +00:00
  • f69bc37be8 Make operators have their own comments separate from those of the underlying function; but cause psql's \do to show the underlying function's comment if the operator has no comment of its own, to preserve the useful functionality of the original behavior. Also, implement COMMENT ON SCHEMA. Patch from Rod Taylor. Tom Lane 2002-05-13 17:45:30 +00:00
  • 3389a110d4 Get rid of long-since-vestigial Iter node type, in favor of adding a returns-set boolean field in Func and Oper nodes. This allows cleaner, more reliable tests for expressions returning sets in the planner and parser. For example, a WHERE clause returning a set is now detected and complained of in the parser, not only at runtime. Tom Lane 2002-05-12 23:43:04 +00:00
  • f9e4f611a1 First pass at set-returning-functions in FROM, by Joe Conway with some kibitzing from Tom Lane. Not everything works yet, and there's no documentation or regression test, but let's commit this so Joe doesn't need to cope with tracking changes in so many files ... Tom Lane 2002-05-12 20:10:05 +00:00
  • 71009354c8 Update for additional options in CREATE OPERATOR. Tom Lane 2002-05-11 02:09:41 +00:00
  • 9b5ca7ee0c Forgot to handle 'opaque' function arguments in regprocedurein/out. Tom Lane 2002-05-11 00:24:16 +00:00
  • 9f0ae0c820 First pass at schema-fying pg_dump/pg_restore. Much to do still, but the basic capability seems to work. Tom Lane 2002-05-10 22:36:27 +00:00
  • 1011fb651d Suppress duplicate logging of utility commands under debug_print_query. Tom Lane 2002-05-10 20:22:13 +00:00
  • 1944bff1d6 Make initdb print a message about which locale it is about to use. Re-add warning if the locale prevents LIKE-optimization. Done within initdb now. Peter Eisentraut 2002-05-09 13:30:24 +00:00
  • 16e22de53a Add a file for version control. Hiroshi Inoue 2002-05-09 04:10:22 +00:00
  • 2822788993 Accept SET SESSION AUTHORIZATION DEFAULT and RESET SESSION AUTHORIZATION to reset session userid to the originally-authenticated name. Also, relax SET SESSION AUTHORIZATION to allow specifying one's own username even if one is not superuser, so as to avoid unnecessary error messages when loading a pg_dump file that uses this command. Per discussion from several months ago. Tom Lane 2002-05-06 19:47:30 +00:00
  • 15162aef24 Make dumpACL behave more reasonably for case where owner has revoked some of his own privileges. Tom Lane 2002-05-06 18:33:45 +00:00