Commit Graph

  • fd44e2fb14 Add URL for most current version. Bruce Momjian 2004-02-10 15:16:36 +00:00
  • 18b8cb5a9e Repair missing inclusions of -lintl for shared libraries. Tom Lane 2004-02-10 07:26:48 +00:00
  • 0eb6951915 Repair missing inclusions of -lintl for shared libraries. Tom Lane 2004-02-10 07:26:25 +00:00
  • d1587f1f5b Looks like we need <unistd.h> for select() on Darwin. Tom Lane 2004-02-10 04:23:03 +00:00
  • 58f337a343 Centralize implementation of delay code by creating a pg_usleep() subroutine in src/port/pgsleep.c. Remove platform dependencies from miscadmin.h and put them in port.h where they belong. Extend recent vacuum cost-based-delay patch to apply to VACUUM FULL, ANALYZE, and non-btree index vacuuming. Tom Lane 2004-02-10 03:42:45 +00:00
  • 24bd490369 Don't try to turn the random bytes from a md5 salt into a String because it may not be a valid String depending on the encoding. Kris Jurka 2004-02-10 01:58:48 +00:00
  • 87bd956385 Restructure smgr API as per recent proposal. smgr no longer depends on the relcache, and so the notion of 'blind write' is gone. This should improve efficiency in bgwriter and background checkpoint processes. Internal restructuring in md.c to remove the not-very-useful array of MdfdVec objects --- might as well just use pointers. Also remove the long-dead 'persistent main memory' storage manager (mm.c), since it seems quite unlikely to ever get resurrected. Tom Lane 2004-02-10 01:55:27 +00:00
  • f06e79525a Win32 signals cleanup. Patch by Magnus Hagander, with input from Claudio Natoli and Bruce Momjian (and some cosmetic fixes from Neil Conway). Changes: Neil Conway 2004-02-08 22:28:57 +00:00
  • 04e82e5008 Add mention of the developer's FAQ. Bruce Momjian 2004-02-08 03:16:31 +00:00
  • 9534fd73d8 Add mention of PostgreSQL as a community project. Bruce Momjian 2004-02-08 03:09:12 +00:00
  • 9f361350d7 Add PITR web page: Bruce Momjian 2004-02-08 01:17:09 +00:00
  • 2d330199c4 Add missing dependency, per Wade Klaver. Tom Lane 2004-02-07 07:20:12 +00:00
  • f425b605f4 Cost based vacuum delay feature. Jan Wieck 2004-02-06 19:36:18 +00:00
  • 687d7cf355 Documentation for generate_series() functions committed a few days ago. Joe Conway 2004-02-05 22:54:36 +00:00
  • 8fd0eb8c7a Back-patch fix for ReadOffset with off_t wider than int. Tom Lane 2004-02-05 22:12:48 +00:00
  • 8d09e25693 Backing out the background writer sync() option. Jan Wieck 2004-02-04 01:24:53 +00:00
  • e66fcce672 Use memmove() rather than memcpy() in set_var_from_var(). If this function is asked to assign a variable to itself, it will result in doing a memcpy() on an entirely-overlapping memory range, which results in undefined behavior according to ANSI C. That said, it is unlikely to actually do anything bad on any sane libc, but this keeps valgrind quiet. Neil Conway 2004-02-04 01:11:47 +00:00
  • 2194ed88de Ensure that memcmp() does not run off the end of memory, per Kurt Roeckx. (Same patch committed to HEAD but I fat-fingered the commit message...) Tom Lane 2004-02-03 17:56:04 +00:00
  • d3917186b2 pwd Tom Lane 2004-02-03 17:52:55 +00:00
  • 391c3811a2 Rename SortMem and VacuumMem to work_mem and maintenance_work_mem. Make btree index creation and initial validation of foreign-key constraints use maintenance_work_mem rather than work_mem as their memory limit. Add some code to guc.c to allow these variables to be referenced by their old names in SHOW and SET commands, for backwards compatibility. Tom Lane 2004-02-03 17:34:04 +00:00
  • 39d715bee6 Add: Bruce Momjian 2004-02-03 16:53:56 +00:00
  • 12661642c8 Add function (actually an int4 and an int8 version) that generates a series of numbers, optionally using an explicit step size other than the default value (one). Use function in the information_schema to replace hard-wired knowledge of INDEX_MAX_KEYS. initdb forced due to pg_proc change. Documentation update still needed -- will be committed separately. Joe Conway 2004-02-03 08:29:57 +00:00
  • 932001350b V3 NotificationResonse messages were trying to be received as V2 messages. Also the PID was being read in the wrong byte order. Finally add a test case for listen/notify. Kris Jurka 2004-02-03 05:43:24 +00:00
  • d71188860e ConnectionPool and SimpleDataSource are marked Serializable, but their superclass (which contains a number of state variables) is not. To correctly serialize these objects we need to manually implement writeObject and readObject. Kris Jurka 2004-02-03 05:28:17 +00:00
  • 1a92a4c10c ResultSet.next() and previous() incremented or decremented the internal current_row variable regardless of wether they succeeded or not. This generated some ArrayIndexOutOfBoundsExceptions when the errorneous adjustment current_row led to out of range values. Kris Jurka 2004-02-03 05:25:38 +00:00
  • 9287630fbc Fix the setXXXStream methods. If passed a null InputStream, convert this to a setNull call. The code originally would try to read the whole stream in one call to read(), but this doesn't work. The InputStream API makes it clear you must be prepared to loop and continue reading if you didn't get the whole request on the first try. Kris Jurka 2004-02-03 05:13:56 +00:00
  • 7ca2bff95f Newer versions of the 1.4.2 jdk give warnings about having return in a finally clause. Kris Jurka 2004-02-03 05:00:21 +00:00
  • 9dac52649d Win32 adjustments for dirmod and configure/configure.in. Bruce Momjian 2004-02-02 22:20:33 +00:00
  • 67aa1962b7 autoconf run. Tom Lane 2004-02-02 18:35:45 +00:00
  • 011ad7efec Set only LC_ALL for sort in tags creation. Bruce Momjian 2004-02-02 17:29:32 +00:00
  • bd2a8078d3 > src/backend/commands/user.c file has some parse error at repalloc(), palloc()$ Bruce Momjian 2004-02-02 17:21:08 +00:00
  • 9e218af7ed Fix a read of uninitialized memory in next_token() of hba.c, spotted via valgrind: a buffer passed to strncmp() had to be NUL-terminated. Original report and patch from Dennis Bjorkland, some cleanup by Andrew Dunstan, and finally some editorializing from Neil Conway. Neil Conway 2004-02-02 16:58:30 +00:00
  • 4c29e21578 Adjustments for Win32-specific rename code, and add include file. Bruce Momjian 2004-02-02 16:37:46 +00:00
  • 98a5284170 Move win32 changes from configure to configure.in, per Tom, autoconf run. Bruce Momjian 2004-02-02 16:00:49 +00:00
  • 3c373885fa Do not let external specification of CFLAGS stop us from adding -fno-strict-aliasing. Tom Lane 2004-02-02 04:08:12 +00:00
  • fce397ed12 Do not let external specification of CFLAGS stop us from adding -fno-strict-aliasing. Tom Lane 2004-02-02 04:07:40 +00:00
  • 6f295328e5 Do not let external specification of CFLAGS stop us from adding -fno-strict-aliasing. Tom Lane 2004-02-02 04:07:18 +00:00
  • a60442a446 Avoid generating invalid character encoding sequences in make_greater_string. Not sure how this mistake evaded detection for so long. Tom Lane 2004-02-02 03:07:25 +00:00
  • a8fcb748e3 Avoid generating invalid character encoding sequences in make_greater_string. Not sure how this mistake evaded detection for so long. Tom Lane 2004-02-02 03:07:14 +00:00
  • 9fe097577e Avoid generating invalid character encoding sequences in make_greater_string. Not sure how this mistake evaded detection for so long. Tom Lane 2004-02-02 03:07:08 +00:00
  • a2b5cc81df Use Tcl_PutEnv() in place of putenv() in libpgtcl, as the latter can apparently corrupt the Tcl runtime. Per suggestion from Michael Brusser <michael@synchronicity.com> Neil Conway 2004-02-02 01:00:58 +00:00
  • b8362d465d Use Tcl_PutEnv() in place of putenv() in libpgtcl, as the latter can apparently corrupt the Tcl runtime. Per suggestion from Michael Brusser <michael@synchronicity.com> Neil Conway 2004-02-02 00:35:08 +00:00
  • d9d2ca8e8e Adjust rename on Win32 to only link to temp name while holding lock, then release locks and loop over renaming to active file name. Bruce Momjian 2004-02-02 00:17:23 +00:00
  • e5e5a323ca Briefly, * configure + Makefile changes * shared memory attaching in EXEC_BACKEND case (+ minor fix for apparent cygwin bug under cygwin/EXEC_BACKEND case only) * PATH env var separator differences * missing win32 rand functions added * placeholder replacements for sync etc under port.h Bruce Momjian 2004-02-02 00:11:31 +00:00
  • 10bb17e334 Set locale to C before doing sort in make_ctags. Bruce Momjian 2004-02-01 23:11:33 +00:00
  • e1826d037a Update char_length() example for new semantics. Tom Lane 2004-02-01 06:55:07 +00:00
  • f27976c85b Make length() disregard trailing spaces in char(n) values, per discussion some time ago and recent patch from Gavin Sherry. Update documentation to point out that trailing spaces are insignificant in char(n). Tom Lane 2004-02-01 06:27:48 +00:00
  • b59917f02e Fix text_position to not scan past end of source string in multibyte case, per report from Korea PostgreSQL Users' Group. Copied from Tom Lane's 7.4 branch patch. Joe Conway 2004-02-01 04:05:13 +00:00
  • 08b0e60563 Fix a probably-harmless read of uninitialized memory in mkdir_p(), to silence a valgrind warning. Neil Conway 2004-01-31 22:10:00 +00:00
  • 25b8b69eec Remove a superfluous semi-colon. Neil Conway 2004-01-31 21:18:00 +00:00
  • 7b2cf1713d Micro-opt: replace calls like appendStringInfo(buf, "%s", str); with appendStringInfoString(buf, str); as the latter form is slightly faster. Neil Conway 2004-01-31 05:09:41 +00:00
  • 871e56709d Fix text_position to not scan past end of source string in multibyte case, per report from Korea PostgreSQL Users' Group. Tom Lane 2004-01-31 00:45:34 +00:00
  • d4fd7d85f3 Fix text_position to not scan past end of source string in multibyte case, per report from Korea PostgreSQL Users' Group. Also do some cosmetic cleanup in nearby code. Tom Lane 2004-01-31 00:45:21 +00:00
  • a3c969d522 Fix debug elog message to agree with name of its routine. Tom Lane 2004-01-30 22:44:21 +00:00
  • 5ee2ae2049 Remove sleep() and use single PG_SLEEP call for Win32 signal handling and consistency. Bruce Momjian 2004-01-30 15:57:04 +00:00
  • 777babeced Add: < > * Allow libpq to return information about prepared queries Bruce Momjian 2004-01-30 11:11:07 +00:00
  • 940b87e722 Fix (debatable) spelling mistake in a comment: 'concatenate' is the usual term, not 'catenate'. Neil Conway 2004-01-29 12:34:59 +00:00
  • 18f9d7c74e Make USING and WITH optional to bring the syntax of \copy into exact agreement with what the backend grammar actually accepts (which is a bit looser than what its documentation claims). Per report from Bill Moran, though I did not use his patch since it removed all the undocumented flexibility that the code historically had and the backend still has. Tom Lane 2004-01-28 22:14:04 +00:00
  • 2f0d43b251 Review uses of IsUnderPostmaster, change some tests to look at whereToSendOutput instead because they are really inquiring about the correct client communication protocol. Update some comments. This is pointing towards supporting regular FE/BE client protocol in a standalone backend, per discussion a month or so back. Tom Lane 2004-01-28 21:02:40 +00:00
  • b3ead7c045 Fix typo. Tom Lane 2004-01-28 20:43:03 +00:00
  • 94189c9fc9 - Fixed prototype for ECPGprepared_statement to not moan about "const char" - Fixed parsing of nested structures. Michael Meskes 2004-01-28 09:55:53 +00:00
  • 6d9a81b66f Removed some debugging output. Michael Meskes 2004-01-28 09:54:23 +00:00
  • 6ccfc4f430 - Issue a warning if a cursor is declared but not opened. - Fixed prototype for ECPGprepared_statement to not moan about "const char" - Fixed parsing of nested structures. - Added option to parse header files. Michael Meskes 2004-01-28 09:52:14 +00:00
  • fd950e878c Fix oversight in check_ungrouped_columns optimization that avoids unnecessary checks for complex grouping expressions: we cannot check whether the expressions are simple Vars until after we apply flatten_join_alias_vars, because in the case of FULL JOIN that routine can introduce non-Var expressions. Per example from Joel Knight. Tom Lane 2004-01-28 07:47:07 +00:00
  • 31a0f1d33b Fix oversight in check_ungrouped_columns optimization that avoids unnecessary checks for complex grouping expressions: we cannot check whether the expressions are simple Vars until after we apply flatten_join_alias_vars, because in the case of FULL JOIN that routine can introduce non-Var expressions. Per example from Joel Knight. Tom Lane 2004-01-28 07:46:44 +00:00
  • 9f017115f5 simplify_function() mustn't try to evaluate functions that return composite types, because TupleTableSlots aren't Datums and can't be stored in Const nodes. We can remove this restriction if we ever adopt a cleaner runtime representation for whole-tuple results, but at the moment it's broken. Per example from Thomas Hallgren. Tom Lane 2004-01-28 00:05:25 +00:00
  • 4405b3e05e simplify_function() mustn't try to evaluate functions that return composite types, because TupleTableSlots aren't Datums and can't be stored in Const nodes. We can remove this restriction if we ever adopt a cleaner runtime representation for whole-tuple results, but at the moment it's broken. Per example from Thomas Hallgren. Tom Lane 2004-01-28 00:05:04 +00:00
  • 45842e6c52 Improve the documentation of the 'join_collapse_limit' GUC var. Thanks to Tom Lane for some editorial suggestions. Neil Conway 2004-01-27 16:51:43 +00:00
  • 03ef7ebafa Run stats test separately, not as part of a parallel group, to avoid possible failures due to stats collector not updating fast enough under heavy load. Per report from Jeremy Yoder. Tom Lane 2004-01-27 00:50:52 +00:00
  • 7e34b2d73f Run stats test separately, not as part of a parallel group, to avoid possible failures due to stats collector not updating fast enough under heavy load. Per report from Jeremy Yoder. Tom Lane 2004-01-27 00:50:33 +00:00
  • 70d5811514 Pgindent win32 signal code. Bruce Momjian 2004-01-27 00:46:58 +00:00
  • 50491963cb Here's the latest win32 signals code, this time in the form of a patch against the latest shapshot. It also includes the replacement of kill() with pqkill() and sigsetmask() with pqsigsetmask(). Bruce Momjian 2004-01-27 00:45:26 +00:00
  • eec08b95e7 [all] Removed call to getppid in SendPostmasterSignal, replacing with a PostmasterPid variable, which gets set (early) in PostmasterMain getppid would not be the postmaster? Bruce Momjian 2004-01-26 22:59:54 +00:00
  • ede3b762a3 Back out win32 patch so we can apply it separately. Bruce Momjian 2004-01-26 22:54:58 +00:00
  • f4921e5ca3 Attached is a patch that fixes some trivial typos and alignment. Please apply. Bruce Momjian 2004-01-26 22:51:56 +00:00
  • af29187f2e Add Name: Bruce Momjian 2004-01-26 22:38:42 +00:00
  • ee96c82cc2 Done: Bruce Momjian 2004-01-26 22:38:10 +00:00
  • c77f363384 Ensure that close() and fclose() are checked for errors, at least in cases involving writes. Per recent discussion about the possibility of close-time failures on some filesystems. There is a TODO item for this, too. Tom Lane 2004-01-26 22:35:32 +00:00
  • e0707cbae9 The attached patch clarifies (or, rather, makes explicit) to readers how to handle memory management for char pointers returned by libpq functions. Original patch by Gavin Sherry, some tweaking and consistency improvements by Neil Conway. Neil Conway 2004-01-26 22:13:21 +00:00
  • 1b25db6a3c Repair incorrect order of operations in GetNewTransactionId(). We must complete ExtendCLOG() before advancing nextXid, so that if that routine fails, the next incoming transaction will try it again. Per trouble report from Christopher Kings-Lynne. Tom Lane 2004-01-26 19:16:40 +00:00
  • a51d4b8dc0 Repair incorrect order of operations in GetNewTransactionId(). We must complete ExtendCLOG() before advancing nextXid, so that if that routine fails, the next incoming transaction will try it again. Per trouble report from Christopher Kings-Lynne. Tom Lane 2004-01-26 19:16:23 +00:00
  • be11fa26e3 Repair incorrect order of operations in GetNewTransactionId(). We must complete ExtendCLOG() before advancing nextXid, so that if that routine fails, the next incoming transaction will try it again. Per trouble report from Christopher Kings-Lynne. Tom Lane 2004-01-26 19:15:59 +00:00
  • 7a14a72e08 Added: Bruce Momjian 2004-01-26 18:32:08 +00:00
  • f30d39e706 Add usage examples for PREPARE and EXECUTE. Original patch from Gavin Sherry, editorializing by Neil Conway. Neil Conway 2004-01-26 17:26:31 +00:00
  • ac760b6bff Docs fix from Kris Jurka <books@ejurka.com> Teodor Sigaev 2004-01-26 15:08:58 +00:00
  • 146aab497e Docs fix from Kris Jurka <books@ejurka.com> Teodor Sigaev 2004-01-26 15:08:52 +00:00
  • ee2f149d30 Clarify that the 'user' column still applies for 'trust'. Bruce Momjian 2004-01-26 05:35:15 +00:00
  • 3761f968c8 Update datestamp. Bruce Momjian 2004-01-26 05:33:24 +00:00
  • 11c7bdb4e4 Fix an obsolete file path mentioned in a comment. Neil Conway 2004-01-25 22:19:42 +00:00
  • 34f0a8e72d *** empty log message *** Bruce Momjian 2004-01-25 04:56:25 +00:00
  • ccf3a0440a Add Joe to TODO: Bruce Momjian 2004-01-25 04:50:16 +00:00
  • acfa013e81 Fix typo I mistakenly added. Bruce Momjian 2004-01-25 03:30:00 +00:00
  • e10bb0518a More fallout from the recent psql patch: rename xmalloc and friends to pg_malloc, to avoid linker failures on same platforms. Neil Conway 2004-01-25 03:07:22 +00:00
  • afe7b7b60e Update null storage description. Bruce Momjian 2004-01-25 02:28:43 +00:00
  • 8303a3d1ea Mention that log_statement only prints query on PREPARE, not EXECUTE, and PL/pgSQL only prints queries on first function call. Bruce Momjian 2004-01-25 00:36:18 +00:00
  • 9d8888079d Support named parameters in information_schema.parameters, per Dennis Bjorklund. I did not force initdb for this, but you'd need to do one to get the improved view. Tom Lane 2004-01-24 23:45:13 +00:00
  • 5eb2076c3c Fix problems with dropped columns in pltcl triggers, per report from Patrick Samson. Tom Lane 2004-01-24 23:06:41 +00:00
  • 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