summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2006-03-08Tweak trace_sort code to show the merge order (number of active inputTom Lane
tapes) for each merge step. This will give us some idea of how effective the merge distribution algorithm is.
2006-03-08Update pltcl expected file for E''.Bruce Momjian
2006-03-08Adjust plpython for escape_string_warning.Bruce Momjian
2006-03-08Adjust PL regression tests for escape_string_warning.Bruce Momjian
2006-03-07Further examination of ltsReleaseBlock usage shows that it's got aTom Lane
performance issue during regular merge passes not only the 'final merge' case. The original design contemplated that there would never be more than about one free block per 'tape', hence no need for an efficient method of keeping the free blocks sorted. But given the later addition of merge preread behavior in tuplesort.c, there is likely to be about work_mem worth of free blocks, which is not so small ... and for that matter the number of tapes isn't necessarily small anymore either. So we'd better get rid of the assumption entirely. Instead, I'm assuming that the usage pattern will involve alternation between merge preread and writing of a new run. This makes it reasonable to just add blocks to the list without sorting during successive ltsReleaseBlock calls, and then do a qsort() when we start getting ltsGetFreeBlock() calls. Experimentation seems to confirm that there aren't many qsort calls relative to the number of ltsReleaseBlock/ltsGetFreeBlock calls.
2006-03-07Repair old performance bug in tuplesort.c/logtape.c. In the case whereTom Lane
we are doing the final merge pass on-the-fly, and not writing the data back onto a 'tape', the number of free blocks in the tape set will become large, leading to a lot of time wasted in ltsReleaseBlock(). There is really no need to track the free blocks anymore in this state, so add a simple shutoff switch. Per report from Stefan Kaltenbrunner.
2006-03-07Turn off zero_damaged_pages in the right place (ie, in the autovacTom Lane
process not in the postmaster) and with the right GucSource (needs to be a nontransactional source since we've not started an xact yet).
2006-03-07Use SetConfigOption() to turn off "zero_damaged_pages" in autovacuum.Bruce Momjian
2006-03-07Back out comment update about sighup, original was accurate.Bruce Momjian
2006-03-07Properly set "escape_string_warning" to default to true.Bruce Momjian
2006-03-07Make all our flex and bison files use %option prefix or %name-prefixTom Lane
(respectively) to rename yylex and related symbols. Some were doing it this way already, while others used not-too-reliable sed hacks in the Makefiles. It's all nice and consistent now.
2006-03-07Remove the stub support we had for UNION JOIN; per discussion, this isTom Lane
not likely ever to be implemented seeing it's been removed from SQL2003. This allows getting rid of the 'filter' version of yylex() that we had in parser.c, which should save at least a few microseconds in parsing.
2006-03-07'make clean' should NOT remove *~ files.Tom Lane
2006-03-06Default to ON for 8.2, as announced in the release notes:Bruce Momjian
escape_string_warning = on
2006-03-06Attached is the new patch. To summarize:Bruce Momjian
- new function justify_interval(interval) - modified function justify_hours(interval) - modified function justify_days(interval) These functions are defined to meet the requirements as discussed in this thread. Specifically: - justify_hours makes certain the sign bit on the hours matches the sign bit on the days. It only checks the sign bit on the days, and not the months, when determining if the hours should be positive or negative. After the call, -24 < hours < 24. - justify_days makes certain the sign bit on the days matches the sign bit on the months. It's behavior does not depend on the hours, nor does it modify the hours. After the call, -30 < days < 30. - justify_interval makes sure the sign bits on all three fields months, days, and hours are all the same. After the call, -24 < hours < 24 AND -30 < days < 30. Mark Dilger
2006-03-06Enable standard_conforming_strings to be turned on.Bruce Momjian
Kevin Grittner
2006-03-06Update comment on how sighup signal affects postgresql.conf reload.Bruce Momjian
Markus Bertheau
2006-03-06* Stephen Frost (sfrost@snowman.net) wrote:Bruce Momjian
> I've now tested this patch at home w/ 8.2HEAD and it seems to fix the > bug. I plan on testing it under 8.1.2 at work tommorow with > mod_auth_krb5, etc, and expect it'll work there. Assuming all goes > well and unless someone objects I'll forward the patch to -patches. > It'd be great to have this fixed as it'll allow us to use Kerberos to > authenticate to phppgadmin and other web-based tools which use > Postgres. While playing with this patch under 8.1.2 at home I discovered a mistake in how I manually applied one of the hunks to fe-auth.c. Basically, the base code had changed and so the patch needed to be modified slightly. This is because the code no longer either has a freeable pointer under 'name' or has 'name' as NULL. The attached patch correctly frees the string from pg_krb5_authname (where it had been strdup'd) if and only if pg_krb5_authname returned a string (as opposed to falling through and having name be set using name = pw->name;). Also added a comment to this effect. Backpatch to 8.1.X. Stephen Frost
2006-03-06This patch adds native LDAP auth, for those platforms that don't haveBruce Momjian
PAM (such as Win32, but also unixen without PAM). On Unix, uses OpenLDAP. On win32, uses the builin WinLDAP library. Magnus Hagander
2006-03-06Fix psql history handling so 'execute' backslash commands (\g)Bruce Momjian
remain as part of the multi-line query.
2006-03-06Prevent autovacuum from zeroing damaged pages.Bruce Momjian
2006-03-06In psql, save history of backslash commands used in multi-lineBruce Momjian
statements before the multi-line statement, rather than inside the multi-line statement.
2006-03-05Per recent discussion on -hackers, we should sometimes reorder theNeil Conway
columns of the grouping clause to avoid redundant sorts. The optimizer is not currently capable of doing this, so this patch implements a simple hack in the analysis phase (transformGroupClause): if any subset of the GROUP BY clause matches a prefix of the ORDER BY list, that prefix is moved to the front of the GROUP BY clause. This shouldn't change the semantics of the query, and allows a redundant sort to be avoided for queries like "GROUP BY a, b ORDER BY b".
2006-03-05Prepared queries for PLPerl, plus fixing a small plperl memory leak. PatchAndrew Dunstan
and docs from Dmitry Karasik, slightly editorialised.
2006-03-05Update copyright for 2006. Update scripts.Bruce Momjian
2006-03-05Update to 2006.Bruce Momjian
2006-03-05Check for "msys" so it doesn't use 'con' by checking for an evironmentBruce Momjian
variable.
2006-03-05Improve STRINGS_H macro test for MSVC extensions.Bruce Momjian
Add DLLIMPORT for V1 headers, in case Win32 don't export all symbols.
2006-03-04Support include directives in postgresql.conf.Tom Lane
Patch by Joachim Wieland, somewhat reworked for clarity and portability.
2006-03-04Declare the arguments of AllocateFile() as const char *, not char *.Tom Lane
This is consistent with the standard definition of fopen().
2006-03-04Incorporate a couple of recent tuplesort.c improvements into tuplestore.c.Tom Lane
In particular, ensure that enlargement of the memtuples[] array doesn't fall foul of MaxAllocSize when work_mem is very large, and don't bother enlarging it if that would force an immediate switch into 'tape' mode anyway.
2006-03-04Prevent lazy_space_alloc from making requests that exceed MaxAllocSize,Tom Lane
per report from Stefan Kaltenbrunner.
2006-03-04Prevent sorting from requesting a SortTuple array that exceeds MaxAllocSize;Tom Lane
we'll go over to disk-based sort if we reach that limit. This fixes Stefan Kaltenbrunner's observation that sorting can suffer an 'invalid memory alloc request size' failure when sort_mem is set large enough. It's unfortunately not so easy to fix in 8.1 ...
2006-03-04Tighten up SJIS byte sequence check. Now we reject invalid SJIS byteTatsuo Ishii
sequence such as "0x95 0x27". Patches from Akio Ishida. Also update copyright notice.
2006-03-04> gettimeofday.c:35: warning: integer constant is too large for "long"Bruce Momjian
> type Wouldn't it be better to use the UINT64CONST macro? I realize this file is Windows-only, but we do worry about more than one compiler on that platform. Kris Jurka
2006-03-04Use DEVTTY as 'con' on Win32 as a replacement for /dev/tty.Bruce Momjian
2006-03-03This patch fixes this warning.Bruce Momjian
gettimeofday.c:35: warning: integer constant is too large for "long" type Kris Jurka
2006-03-03Avoid trying to open /dev/tty on Win32. Some Win32 systems haveBruce Momjian
/dev/tty, but it isn't a device file and doesn't work as expected. This fixes a known bug where psql does not prompt for a password on some Win32 systems. Backpatch to 8.1.X. Robert Kinberg
2006-03-03Improve pg_dump and psql to use libpq's newer COPY support routines,Tom Lane
instead of the old deprecated ones. Volkan Yazici, with some editorializing by moi.
2006-03-03Fixes for Win32-client only compiles.Bruce Momjian
Hiroshi Saito
2006-03-03Update ipcclean to use try 'id' first for root check.Bruce Momjian
2006-03-03Add workaround so MSVC doesn't try to load strings.h, which it doesn'tBruce Momjian
have. This happens when MSVC uses pg_config.h generated by MinGW. Per report from Charles F. I. Savage
2006-03-03Teach PQcmdTuples() that a COPY command tag might contain a row count,Tom Lane
and tighten up its sanity checking of the tag as a safety measure. Volkan Yazici.
2006-03-03Clarify macro layout for win32 IMPORT.Bruce Momjian
2006-03-03Make the COPY command return a command tag that includes the number ofTom Lane
rows copied. Backend side of Volkan Yazici's recent patch, with corrections and documentation.
2006-03-03Dept. of second thoughts: rejigger the TRUNCATE ... CASCADE patch so thatTom Lane
relations are still checked for permissions etc as soon as they are opened. The original form of the patch could hold exclusive lock for a long time on relations that the user doesn't even have permissions to access, let alone truncate.
2006-03-03In ipcclean, check LOGNAME only if USER is not set.Bruce Momjian
Fixes problem with 'su' on some platforms.
2006-03-03Fix a typo.Neil Conway
2006-03-03Add CASCADE option to TRUNCATE. Joachim WielandTom Lane
2006-03-03Add comment about localized month names for to_date and to_timestamp.Bruce Momjian