summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Message style improvementsPeter Eisentraut2006-10-0631-114/+115
|
* Cleanup for pglz_compress code: remove dead code, const-ify API ofTom Lane2006-10-053-396/+96
| | | | | | remaining functions, simplify pglz_compress's API to not require a useless data copy when compression fails. Also add a check in pglz_decompress that the expected amount of data was decompressed.
* Make use of qsort_arg in several places that were formerly using klugyTom Lane2006-10-053-60/+52
| | | | | | static variables. This avoids any risk of potential non-reentrancy, and in particular offers a much cleaner workaround for the Intel compiler bug that was affecting ginutil.c.
* Work around buggy strtod on (some versions of?) IRIX. Combination ofTom Lane2006-10-052-2/+60
| | | | proposed patches from John Jorgensen and Steve Singer.
* Second try at fixing libedit configuration for Bob Friesenhahn.Tom Lane2006-10-051-0/+3
| | | | | | Buildfarm results from 'gazelle' show that there are indeed libedit versions for which history.h is a needed header, even though it's apparently been dropped entirely in other versions. Grumble.
* Update Solaris strtod() bug comment.Bruce Momjian2006-10-041-3/+3
|
* Update Solaris strtol() bug comment.Bruce Momjian2006-10-041-2/+7
|
* Adjust configure's handling of libedit to not look for a history.h file.Tom Lane2006-10-041-3/+0
| | | | | | | | | Per Bob Friesenhahn's report, this file is not supplied by some versions of libedit, and even when it is supplied it seems to be just a link to readline.h, so we don't need to include it anyway. Also, ensure that we won't try to use a too-old version of Bison. The previous coding would bleat but then use it anyway; better to invoke the 'missing' script if any grammar files need to be rebuilt.
* Exclude pgindent from affecting the ecpg regression directory.Bruce Momjian2006-10-041-1/+3
|
* Fix initdb's logic for picking shared_buffers/max_fsm_pages, which hadTom Lane2006-10-041-18/+15
| | | | | | | gotten rather thoroughly whacked out by careless recent changes: the intended ratio between the two was off by a lot, and the minimum number of shared buffers tried had increased by a lot. Problem exposed by failures on buildfarm members with smaller SHMMAX values.
* Fix comment to agree with presentation.Tom Lane2006-10-041-2/+2
|
* Add qsort and qsort_arg to MSVC list of src/port files.Tom Lane2006-10-041-2/+2
|
* Reverted changes made by pgindentMichael Meskes2006-10-0443-4111/+2575
| | | | Made show.pgc set all variables before displaying them.
* pgindent run for 8.2.Bruce Momjian2006-10-04449-11657/+14300
|
* Udpate typedefs for pgindent.Bruce Momjian2006-10-041-1/+2
|
* Switch over to using our own qsort() all the time, as has been proposedTom Lane2006-10-035-48/+247
| | | | | | | | | | repeatedly. Now that we don't have to worry about memory leaks from glibc's qsort, we can safely put CHECK_FOR_INTERRUPTS into the tuplesort comparators, as was requested a couple months ago. Also, get rid of non-reentrancy and an extra level of function call in tuplesort.c by providing a variant qsort_arg() API that passes an extra void * argument through to the comparison routine. (We might want to use that in other places too, I didn't look yet.)
* pgevent fixes:Bruce Momjian2006-10-032-2/+6
| | | | | | | | | | 1) Make vcbuild actually build the pgevent dll. 2) Change the pgevent DLL file so it doens't specify ordinal for the functions. You're not supposed to do that. You're actually supposed to declare them as PRIVATE as well, but mingw doesn't support that. VC++ will throw a warning and not an error though, so we can live with it. Magnus Hagander
* Update typedef list for 8.2 pgindent run.Bruce Momjian2006-10-031-43/+107
|
* Fix yesno_prompt() memory leak in /script tools, reported by Converity.Bruce Momjian2006-10-031-4/+12
|
* Improve numeric overflow error message.Bruce Momjian2006-10-032-5/+6
| | | | David Fetter
* Make some sentences consistent with similar ones.Bruce Momjian2006-10-039-22/+22
| | | | Euler Taveira de Oliveira
* The attached patch changes units of the some default values inBruce Momjian2006-10-034-46/+99
| | | | | | | | | | | | | | | | | | | postgresql.conf. - shared_buffers = 32000kB => 32MB - temp_buffers = 8000kB => 8MB - wal_buffers = 8 => 64kB The code of initdb was a bit modified to write MB-unit values. Values greater than 8000kB are rounded out to MB. GUC_UNIT_XBLOCKS is added for wal_buffers. It is like GUC_UNIT_BLOCKS, but uses XLOG_BLCKSZ instead of BLCKSZ. Also, I cleaned up the test of GUC_UNIT_* flags in preparation to add more unit flags in less bits. ITAGAKI Takahiro
* Cleanup pgwin32_open() 'if' test, and avoid possible error.Bruce Momjian2006-10-031-3/+9
|
* Rearrange MSVC errcode hack, fix incorrect _MSC_VER test. MagnusTom Lane2006-10-032-6/+5
|
* Move WIN32_ONLY_COMPILER define from c.h to win32.h because it was beingBruce Momjian2006-10-032-5/+6
| | | | defined too late.
* Mention in postgresql.conf that autovacuum also needsBruce Momjian2006-10-031-0/+2
| | | | | | stats_start_collector and stats_row_level to also be on David Wheeler
* Add URL about strlcpy() creation history.Bruce Momjian2006-10-021-1/+2
|
* Properly handle the case where strlcpy() exists in libc but isn'tTom Lane2006-10-022-2/+6
| | | | | declared in the system headers. Per report from Bruce than some BSDen are like this.
* Make some marginal performance improvements in reportErrorPosition(),Tom Lane2006-10-011-66/+86
| | | | | | | | which turns out to be a dominant part of the runtime in scenarios involving lots of parse-time warnings (such as Stephen Frost's example of an INSERT with a lot of backslash-containing strings). There's not a whole lot we can do about the character-at-a-time scanning, but we can at least avoid traversing the query twice.
* Do a CHECK_FOR_INTERRUPTS after emitting a message of less than ERRORTom Lane2006-10-011-2/+9
| | | | | | | severity. This is to ensure the user can cancel a query that's spitting out lots of notice/warning messages, even if they're coming from a loop that doesn't otherwise contain a CHECK_FOR_INTERRUPTS. Per gripe from Stephen Frost.
* Fix overly enthusiastic Assert introduced in 8.1: it's expecting aTom Lane2006-10-011-3/+7
| | | | | CaseTestExpr, but forgot that the optimizer is sometimes able to replace CaseTestExpr by Const.
* BSD/OS doesn't have a prototype for strlcpy() but has the function, soBruce Momjian2006-09-301-2/+2
| | | | work around that with defines.
* Allow assignment to array elements not contiguous with those alreadyTom Lane2006-09-293-85/+260
| | | | | | | | | | present; intervening positions are filled with nulls. This behavior is required by SQL99 but was not implementable before 8.2 due to lack of support for nulls in arrays. I have only made it work for the one-dimensional case, which is all that SQL99 requires. It seems quite complex to get it right in higher dimensions, and since we never allowed extension at all in higher dimensions, I think that must count as a future feature addition not a bug fix.
* Fix IS NULL and IS NOT NULL tests on row-valued expressions to conform toTom Lane2006-09-289-129/+239
| | | | | | | | | | | | the SQL spec, viz IS NULL is true if all the row's fields are null, IS NOT NULL is true if all the row's fields are not null. The former coding got this right for a limited number of cases with IS NULL (ie, those where it could disassemble a ROW constructor at parse time), but was entirely wrong for IS NOT NULL. Per report from Teodor. I desisted from changing the behavior for arrays, since on closer inspection it's not clear that there's any support for that in the SQL spec. This probably needs more consideration.
* Fix a couple other places that need to know about (some) src/port/ filesTom Lane2006-09-282-5/+5
| | | | explicitly.
* Oops, forgot that libpq needs extra steps to make use of src/port/ files.Tom Lane2006-09-273-4/+18
|
* Replace strncpy with strlcpy in selected places that seem possibly relevantTom Lane2006-09-2711-73/+72
| | | | | | | to performance. (A wholesale effort to get rid of strncpy should be undertaken sometime, but not during beta.) This commit also fixes dynahash.c to correctly truncate overlength string keys for hashtables, so that its callers don't have to anymore.
* Add strlcpy() to the set of functions supported by src/port/ when notTom Lane2006-09-273-2/+76
| | | | | available directly on the platform. Per discussion, this function is sufficiently widely recognized to be treated as standard.
* Fix some misuses of strncat().Tom Lane2006-09-273-12/+14
|
* Remove separate strdup.h header file; it's redundant with port.h.Tom Lane2006-09-2710-48/+9
|
* Degrade the transaction-id wraparound point message from LOG to DEBUG1, perAlvaro Herrera2006-09-261-2/+2
| | | | | | discussion. Patch from Simon Riggs.
* Added new filesMichael Meskes2006-09-263-0/+2418
|
* Added Joachim's changes for MinGW.Michael Meskes2006-09-2613-128/+230
| | | | Added SET DATESTYLE to one test so the output format is defined.
* Increase default value of effective_cache_size to 128MB, per discussion.Tom Lane2006-09-252-3/+3
|
* Add a check to prevent overwriting valid data if smgrnblocks() gives aTom Lane2006-09-251-4/+21
| | | | | | wrong answer, as has been seen to occur with a buggy Linux kernel. Not really our bug, but it's a simple test in a seldom-used control path, so might as well have a defense.
* Fix notice message from DROP FUNCTION IF EXISTS, and improve messageTom Lane2006-09-254-24/+59
| | | | for DROP AGGREGATE IF EXISTS. Per report from Teodor.
* Fix incorrect mapping of fopen mode 'a' in recently-added code toTom Lane2006-09-241-2/+2
| | | | make fopen work safely on Windows. Magnus
* Cause pg_regress to invoke the temporary postmaster as 'postgres' notTom Lane2006-09-241-8/+10
| | | | | | 'postmaster', so as not to depend on the existence of the postmaster symlink. Also, implement postmaster-still-alive and postmaster-kill operations for Windows, per Magnus.
* Suppress useless warning on pre-XP versions of Windows. MagnusTom Lane2006-09-241-2/+10
|
* Tag us Beta1REL8_2_BETA1PostgreSQL Daemon2006-09-231-3/+3
|