Commit Graph

  • c8bcd5ca92 Fix problems with dropped columns in pltcl triggers, per report from Patrick Samson. Tom Lane 2004-01-24 23:06:29 +00:00
  • 0152f14812 Example of a function taking a composite type should show how to call it. Tom Lane 2004-01-24 22:05:08 +00:00
  • 6f046b9d9f Revert the change to print.c, as this breaks src/bin/scripts. The proper way to fix this is probably implementing safe memory handling functions once in a static lib and then using that in the various client apps, but for the moment I've just reverted the change to un-break the tree. Neil Conway 2004-01-24 20:43:26 +00:00
  • d77b63b17c Added GUC variable bgwriter_flush_method controlling the action done by the background writer between writing dirty blocks and napping. Jan Wieck 2004-01-24 20:00:46 +00:00
  • 610d33c194 This patch makes some of the memory manipulation performed by psql a little more sane. Some parts of the code was using a static function xmalloc() that did safe memory allocation (where "safe" means "bail out on OOM"), but most of it was just invoking calloc() or malloc() directly. Now almost everything invokes xmalloc() or xcalloc(). Neil Conway 2004-01-24 19:38:49 +00:00
  • cb3dc829f6 Translation updates Dennis Bjorklund 2004-01-24 07:30:40 +00:00
  • 67a1bf1bb1 Repair planner failure for cases involving Cartesian products inside IN (sub-SELECT) constructs. We must force a clauseless join of the sub-select member relations, but it wasn't happening because the code thought it would be able to use the join clause arising from the IN. Tom Lane 2004-01-24 00:37:42 +00:00
  • 5d66583678 Repair planner failure for cases involving Cartesian products inside IN (sub-SELECT) constructs. We must force a clauseless join of the sub-select member relations, but it wasn't happening because the code thought it would be able to use the join clause arising from the IN. Tom Lane 2004-01-24 00:37:28 +00:00
  • 3969f2924b Revise GEQO planner to make use of some heuristic knowledge about SQL, namely that it's good to join where there are join clauses rather than where there are not. Also enable it to generate bushy plans at need, so that it doesn't fail in the presence of multiple IN clauses containing sub-joins. These changes appear to improve the behavior enough that we can substantially reduce the default pool size and generations count, thereby decreasing the runtime, and yet get as good or better plans as we were getting in 7.4. Consequently, adjust the default GEQO parameters. I also modified the way geqo_effort is used so that it affects both population size and number of generations; it's now useful as a single control to adjust the GEQO runtime-vs-plan-quality tradeoff. Bump geqo_threshold to 12, since even with these changes GEQO seems to be slower than the regular planner at 11 relations. Tom Lane 2004-01-23 23:54:21 +00:00
  • 81c554bbe8 Add: Bruce Momjian 2004-01-23 15:13:30 +00:00
  • 8e32f78b1d Add MySQL mention of licensing difference. Bruce Momjian 2004-01-23 14:41:57 +00:00
  • d84db7d56d Add: Bruce Momjian 2004-01-23 05:05:34 +00:00
  • 0bd3606d72 Fix a minor bug introduced by the recent CREATE TABLE AS / WITH OIDS patch: a 3-value enum was mistakenly assigned directly to a 'bool' in transformCreateStmt(). Along the way, change makeObjectName() to be static, as it isn't used outside analyze.c Neil Conway 2004-01-23 02:13:12 +00:00
  • 052cd647c7 Translation update Peter Eisentraut 2004-01-22 21:13:45 +00:00
  • cd1702dc3a Translation update Peter Eisentraut 2004-01-22 21:13:32 +00:00
  • bfa5304262 Remove ExpandDatabasePath(), which is unused and must have been so since 7.1, because the path interpretation it embodies has been wrong since 7.1. Tom Lane 2004-01-22 20:57:39 +00:00
  • 58ae3cf12c Minor improvements to the trigger documentation, and a few SGML fixes. Neil Conway 2004-01-22 19:50:21 +00:00
  • 6369ace248 Fix incorrect dumping of database LOCATION from 7.0.* servers. Per report from Mattias Kregert. Tom Lane 2004-01-22 19:09:48 +00:00
  • 5ad7d65da4 Fix incorrect dumping of database LOCATION from 7.0.* servers. Per report from Mattias Kregert. Tom Lane 2004-01-22 19:09:32 +00:00
  • feaf66aa72 Translation updates Dennis Bjorklund 2004-01-22 07:26:32 +00:00
  • 94db74f370 Fix oversight in optimization that avoids an unnecessary projection step when scanning a table that we need all the columns from. In case of SELECT INTO, we have to check that the hasoids flag matches the desired output type, too. Per report from Mike Mascari. Tom Lane 2004-01-22 02:23:35 +00:00
  • a376a4673a Fix oversight in optimization that avoids an unnecessary projection step when scanning a table that we need all the columns from. In case of SELECT INTO, we have to check that the hasoids flag matches the desired output type, too. Per report from Mike Mascari. Tom Lane 2004-01-22 02:23:21 +00:00
  • bb9f66351a Correct error introduced in recent hasoids changes --- it's not a bool field anymore. Tom Lane 2004-01-22 00:34:31 +00:00
  • 672a807028 Repair error apparently introduced in the initial coding of GUC: the default value for geqo_effort is supposed to be 40, not 1. The actual 'genetic' component of the GEQO algorithm has been practically disabled since 7.1 because of this mistake. Improve documentation while at it. Tom Lane 2004-01-21 23:33:34 +00:00
  • 5a2a8b9e01 Ensure fflush(stdout) happens in all cases, per gripe from Jon Sablatnig. Tom Lane 2004-01-21 22:05:53 +00:00
  • 4d2e94ef04 Ensure fflush(stdout) happens in all cases, per gripe from Jon Sablatnig. Tom Lane 2004-01-21 22:05:44 +00:00
  • ab65429adf Back-patch repairs for --disable-shared support. Tom Lane 2004-01-21 19:25:11 +00:00
  • ecb156d484 If we don't have shared libraries, we don't have conversions. Make conversion_create.sql be empty (except for a helpful comment) in this case. Allows initdb to succeed with --disable-shared. Tom Lane 2004-01-21 19:22:19 +00:00
  • a4f8f124b7 Fix bit-rot in support for building with --disable-shared. This patch gets us past 'make install', but initdb still fails for lack of conversion libraries ... Tom Lane 2004-01-21 19:04:11 +00:00
  • 6932861e86 Added WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE. Michael Meskes 2004-01-21 14:11:03 +00:00
  • 1ef7c5c1e9 Added WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE. Michael Meskes 2004-01-21 14:09:34 +00:00
  • a0010977fe Translation updates Dennis Bjorklund 2004-01-21 07:28:04 +00:00
  • 04cc4e18dd Implement '\copy from -' to support reading copy data from the same source the \copy came from. Also, fix prompting logic so that initial and per-line prompts appear for all cases of reading from an interactive terminal. Patch by Mark Feit, with some kibitzing by Tom Lane. Tom Lane 2004-01-20 23:48:56 +00:00
  • 0f8a313508 Remove no-longer-relevant note about forcing the type of an integer constant. Per Kris Jurka. Tom Lane 2004-01-20 22:46:06 +00:00
  • 18f7a8e262 This is a patch to support readline prompts which contain non-printing characters, as for fancy colorized prompts. This was nearly a direct lift from bash-2.05b's lib/readline/display.c, per guidance from Chet Ramey. Tom Lane 2004-01-20 19:49:34 +00:00
  • bd046b99f0 Remove JDBC from the build system and documentation, too. Tom Lane 2004-01-19 21:20:06 +00:00
  • 163edee632 Improve discussion of consistent-snapshot backup technique. Haphazard editing of this text had left nearly contradictory statements in adjacent paragraphs ... Tom Lane 2004-01-19 20:12:30 +00:00
  • b195c10df7 missed a few files PostgreSQL Daemon 2004-01-19 20:08:27 +00:00
  • 2a9bf5b33d JDBC is now on GBorg PostgreSQL Daemon 2004-01-19 20:07:14 +00:00
  • 9bd681a522 Repair problem identified by Olivier Prenant: ALTER DATABASE SET search_path should not be too eager to reject paths involving unknown schemas, since it can't really tell whether the schemas exist in the target database. (Also, when reading pg_dumpall output, it could be that the schemas don't exist yet, but eventually will.) ALTER USER SET has a similar issue. So, reduce the normal ERROR to a NOTICE when checking search_path values for these commands. Supporting this requires changing the API for GUC assign_hook functions, which causes the patch to touch a lot of places, but the changes are conceptually trivial. Tom Lane 2004-01-19 19:04:40 +00:00
  • 767adcf5d6 Correct type for isalnum Teodor Sigaev 2004-01-19 18:40:23 +00:00
  • 239760209b Correct type for isalnum Teodor Sigaev 2004-01-19 18:39:45 +00:00
  • 1469af8629 Fix typo. Peter Eisentraut 2004-01-19 14:28:18 +00:00
  • 0054f82c62 Fix typo. Peter Eisentraut 2004-01-19 14:28:06 +00:00
  • 0ee53b5c33 Don't return an overoptimistic result from join_in_selectivity when we have detected that an IN subquery must return unique results. Tom Lane 2004-01-19 03:52:28 +00:00
  • 864412fd0a Recognize that IN subqueries return already-unique results if they use UNION/INTERSECT/EXCEPT (without ALL). This adds on to the previous optimization for subqueries using DISTINCT. Tom Lane 2004-01-19 03:49:41 +00:00
  • 5c625a9326 Add a hash table to cache lookups of 'C'-language functions (that is, dynamically loaded C functions). Some limited testing suggests that this puts the lookup speed for external functions just about on par with built-in functions. Per discussion with Eric Ridge. Tom Lane 2004-01-19 02:06:42 +00:00
  • 90d14654d6 Translation update Peter Eisentraut 2004-01-18 14:54:24 +00:00
  • 51299baa9b Translation update Peter Eisentraut 2004-01-18 14:54:18 +00:00
  • ab189aaad9 Don't use %s-with-precision format spec to truncate data being displayed in a COPY error message. It seems that glibc gets indigestion if it is asked to truncate strings that contain invalid UTF-8 encoding sequences. vsnprintf will return -1 in such cases, leading to looping and eventual memory overflow in elog.c. Instead use our own, more robust pg_mbcliplen routine. I believe this problem accounts for several recent reports of unexpected 'out of memory' errors during COPY IN. Tom Lane 2004-01-18 02:15:57 +00:00
  • be4b8a867f Don't use %s-with-precision format spec to truncate data being displayed in a COPY error message. It seems that glibc gets indigestion if it is asked to truncate strings that contain invalid UTF-8 encoding sequences. vsnprintf will return -1 in such cases, leading to looping and eventual memory overflow in elog.c. Instead use our own, more robust pg_mbcliplen routine. I believe this problem accounts for several recent reports of unexpected 'out of memory' errors during COPY IN. Tom Lane 2004-01-18 02:15:29 +00:00
  • 6bdfde9a77 When testing whether a sub-plan can do projection, use a general-purpose check instead of hardwiring assumptions that only certain plan node types can appear at the places where we are testing. This was always a pretty fragile assumption, and it turns out to be broken in 7.4 for certain cases involving IN-subselect tests that need type coercion. Also, modify code that builds finished Plan tree so that node types that don't do projection always copy their input node's targetlist, rather than having the tlist passed in from the caller. The old method makes it too easy to write broken code that thinks it can modify the tlist when it cannot. Tom Lane 2004-01-18 00:50:03 +00:00
  • 9933ba3f67 Repair faulty plan generation in cases where we choose to implement an IN clause by mergejoin, and a type coercion is needed just above the subplan. A more extensive patch will follow in HEAD. Tom Lane 2004-01-18 00:31:53 +00:00
  • de816a03c4 Repair misestimation of indexscan CPU costs. When an indexqual contains a run-time key (that is, a nonconstant expression compared to the index variable), the key is evaluated just once per scan, but we were charging costs as though it were evaluated once per visited index entry. Tom Lane 2004-01-17 20:09:35 +00:00
  • 0966516b75 Tighten short-circuit tests for deciding whether we need to invoke tuptoaster.c --- fields that are compressed in-line are not a reason to invoke the toaster. Along the way, add a couple more htup.h macros to eliminate confusing negated tests, and get rid of the already vestigial TUPLE_TOASTER_ACTIVE symbol. Tom Lane 2004-01-16 20:51:30 +00:00
  • b89744198e Some refinement of XSLT processing: The result now looks just about as good as the result of the SGML-based tool chain. Peter Eisentraut 2004-01-15 23:51:32 +00:00
  • dfdd59e918 Adjusted calculation of shared memory requirements to new ARC buffer replacement strategy. Jan Wieck 2004-01-15 16:14:26 +00:00
  • cfd7fb7ed4 Fix permission-checking bug reported by Tim Burgess 10-Feb-03 (this time for sure...). Rather than relying on the query context of a rangetable entry to identify what permissions it wants checked, store a full AclMode mask in each RTE, and check exactly those bits. This allows an RTE specifying, say, INSERT privilege on a view to be copied into a derived UPDATE query without changing meaning. Per recent discussion thread. initdb forced due to change of stored rule representation. Tom Lane 2004-01-14 23:01:55 +00:00
  • 9575c7af6c Translation updates Dennis Bjorklund 2004-01-14 12:14:18 +00:00
  • 01d320d421 Translation updates Dennis Bjorklund 2004-01-14 12:14:01 +00:00
  • 91d4f280dd pg_settings should have UPDATE privilege allowed to public. (Can't force initdb for this in 7.4 branch, but we can at least see to it that post-7.4.2 installations will get it right.) Tom Lane 2004-01-14 03:47:12 +00:00
  • d505f30281 pg_settings should have UPDATE privilege allowed to public. Tom Lane 2004-01-14 03:46:28 +00:00
  • f07c69ae57 The no-updates-to-system-catalogs-unless-usecatupd restriction should not apply to system views. It never mattered before 7.4, but it does now. Tom Lane 2004-01-14 03:45:02 +00:00
  • 7562103f6e The no-updates-to-system-catalogs-unless-usecatupd restriction should not apply to system views. It never mattered before 7.4, but it does now. Tom Lane 2004-01-14 03:44:53 +00:00
  • 15ae5d26a0 Revert ill-starred change of 13-Feb-02: it appeared to fix a problem of incorrect permissions checking, but in fact disabled most all permissions checks for view updates. This corrects problems reported by Sergey Yatskevich among others, at the cost of re-introducing the problem previously reported by Tim Burgess. However, since we'd lived with that problem for quite awhile without knowing it, we can live with it awhile longer until a proper fix can be made in 7.5. Tom Lane 2004-01-14 03:39:36 +00:00
  • c2d9ae899d Revert ill-starred change of 13-Feb-02: it appeared to fix a problem of incorrect permissions checking, but in fact disabled most all permissions checks for view updates. This corrects problems reported by Sergey Yatskevich among others, at the cost of re-introducing the problem previously reported by Tim Burgess. However, since we'd lived with that problem for quite awhile without knowing it, we can live with it awhile longer until a proper fix can be made in 7.5. Tom Lane 2004-01-14 03:39:29 +00:00
  • 303a257b5f Revert ill-starred change of 13-Feb-02: it appeared to fix a problem of incorrect permissions checking, but in fact disabled most all permissions checks for view updates. This corrects problems reported by Sergey Yatskevich among others, at the cost of re-introducing the problem previously reported by Tim Burgess. However, since we'd lived with that problem for quite awhile without knowing it, we can live with it awhile longer until a proper fix can be made in 7.5. Tom Lane 2004-01-14 03:39:22 +00:00
  • 00e734116c Fix format string error. Peter Eisentraut 2004-01-13 22:43:25 +00:00
  • 31fc448196 Translation update Peter Eisentraut 2004-01-13 18:58:42 +00:00
  • ace92cef35 Translation update Peter Eisentraut 2004-01-13 18:58:41 +00:00
  • e27d500235 Make rule and stylesheet to try out XSLT for DocBook processing Peter Eisentraut 2004-01-13 18:45:19 +00:00
  • 5cecb734a7 Fix ecpg test program to properly access int* null indicator. Bruce Momjian 2004-01-13 01:32:52 +00:00
  • 67af5bace5 Fix another place that wasn't maintaining AND/OR flatness of an already-canonicalized qual expression. Tom Lane 2004-01-12 22:20:28 +00:00
  • 5590be0a9e Preserve AND/OR flatness during eval_const_expressions(). This seems a useful improvement in any case, and it keeps the new logic for restrictinfo structures happy. Per report from Kris Jurka. Tom Lane 2004-01-12 20:48:15 +00:00
  • 1c15812c3c Translation updates Dennis Bjorklund 2004-01-11 19:42:44 +00:00
  • d45a3bd772 Translation updates Dennis Bjorklund 2004-01-11 19:30:42 +00:00
  • f94ae60a1f Mark string for translation. Dennis Bjorklund 2004-01-11 19:25:44 +00:00
  • d233e5cecc Mark string for translation. Dennis Bjorklund 2004-01-11 19:10:49 +00:00
  • 1fee65f479 Put See Also links back in alphabetical order. Peter Eisentraut 2004-01-11 09:24:17 +00:00
  • e6cd5d586e Translation updates Dennis Bjorklund 2004-01-11 06:55:10 +00:00
  • 28ee773acb Translation updates Dennis Bjorklund 2004-01-11 06:50:27 +00:00
  • 024f3fa52f Minor documentation improvements. Neil Conway 2004-01-11 05:46:58 +00:00
  • e97b8f2da9 Add CREATE TRIGGER, CREATE INDEX, and CREATE SEQUENCE to the list of expressions supported by CREATE SCHEMA. Neil Conway 2004-01-11 04:58:17 +00:00
  • 4cdf51e646 Drops in the CreateProcess calls for Win32 (essentially wrapping up the fork/exec portion of the port), and fixes a handful of whitespace issues Bruce Momjian 2004-01-11 03:49:31 +00:00
  • ca7a1f0c86 Remove the following unused type definitions: bool8, bool16, bool32, word8, word16, and word32. Neil Conway 2004-01-10 23:39:51 +00:00
  • 98dcf085e3 Implement "WITH / WITHOID OIDS" clause for CREATE TABLE AS. This is intended to allow application authors to insulate themselves from changes to the default value of 'default_with_oids' in future releases of PostgreSQL. Neil Conway 2004-01-10 23:28:45 +00:00
  • cf4c925dd4 Translation updates Peter Eisentraut 2004-01-10 22:18:28 +00:00
  • a43f4307f7 Improve has_nullable_targetlist() to allow strict functions of simple variables, not just simple variables. This was foreseen in the original coding of this routine, but not implemented until now. Responds to performance gripe from Laurent Perez. Tom Lane 2004-01-10 18:13:53 +00:00
  • 47f8f33409 Translation updates Dennis Bjorklund 2004-01-10 15:02:50 +00:00
  • bbefabfd55 Translation updates Dennis Bjorklund 2004-01-10 10:39:26 +00:00
  • 15a5440dc5 Translation updates Dennis Bjorklund 2004-01-10 09:09:40 +00:00
  • f9b29b8023 Make non-wait pg_ctl start/stop message more accurate. Bruce Momjian 2004-01-10 02:55:14 +00:00
  • a620a760ed Allow BEGIN WORK to specify transaction isolation level, like START TRANSACTION. Bruce Momjian 2004-01-10 02:21:08 +00:00
  • 6119c7740a Fix subquery pullup logic to not be fooled when a view that appears 'simple' references another view that is not simple. Must recheck conditions after performing recursive pullup. Per example from Laurent Perez, 9-Jan-04. Tom Lane 2004-01-10 00:30:39 +00:00
  • e439fef6fc Fix subquery pullup logic to not be fooled when a view that appears 'simple' references another view that is not simple. Must recheck conditions after performing recursive pullup. Per example from Laurent Perez, 9-Jan-04. Tom Lane 2004-01-10 00:30:21 +00:00
  • 6bd343329e Oops, can't do cpp tests inside macros; make two macros instead. Bruce Momjian 2004-01-09 23:29:31 +00:00
  • 2afa36be9d Remove ereport() from failed connection; already done, per Tom. Bruce Momjian 2004-01-09 23:27:20 +00:00
  • 9640cc7dfa Fix for cancel key restarting postmaster, from Claudio Bruce Momjian 2004-01-09 23:11:39 +00:00
  • 5c0d0a2399 Have psql help show \w parameter as requied. Bruce Momjian 2004-01-09 21:15:51 +00:00
  • cff58dd54e Done: > * -Have psql '\i ~/<tab><tab>' actually load files it displays from home dir Bruce Momjian 2004-01-09 21:12:55 +00:00