summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2006-03-03Arrange to call AbsorbFsyncRequests every so often while performing aTom Lane
checkpoint in the bgwriter. This forestalls overflow of the fsync request queue, which is not fatal but causes considerable performance degradation when it occurs (because backends then have to do their own fsyncs). Per patch from Itagaki Takahiro, modified a little bit by me.
2006-03-02Remove unnecessary lo_lseek call in lo_open. Apparently there was onceTom Lane
a need for it back in the neolithic era, but it's certainly dead code in any PG release we would recognize as such. Since it forces an additional network round trip to the backend, getting rid of it should provide some small performance improvement for large-object-using clients.
2006-03-02Fix ancient error in large objects usage example: overwrite() subroutineTom Lane
was opening with INV_READ flag and then writing. Prior to 8.1 the backend did not reject this, but now it does.
2006-03-02Repair oidvectorrecv and int2vectorrecv, which I broke while changingTom Lane
them to use array_recv :-(. Per report from Tim Kordas.
2006-03-02Fix possible crash at transaction end when a plpgsql function is used andTom Lane
then modified within the same transaction. The code was using a linked list of active PLpgSQL_expr structs, which was OK when it was written because plpgsql never released any parse data structures for the life of the backend. But since Neil fixed plpgsql's memory management, elements of the linked list could be freed, leading to crash when the list is chased. Per report and test case from Kris Jurka.
2006-03-02Fix up pg_dump to emit shell-type definitions at the proper time, toTom Lane
make use of the recently added ability to create a shell type explicitly. I also put in place some infrastructure to allow dump/no dump decisions to be made separately for each database object, rather than the former hardwired 'dump if in a dumpable schema' policy. This was needed anyway for shell types so now seemed a convenient time to do it. The flexibility isn't exposed to the user yet, but is ready for future extensions.
2006-03-01Update the expected regression test results to account for the changes toNeil Conway
error messages I made yesterday -- thanks to Andrew Dunstan for reporting this, and my apologies for missing it the first time.
2006-03-01Attached is a patch that replaces a bunch of places where StringInfosNeil Conway
are unnecessarily allocated on the heap rather than the stack. If the StringInfo doesn't outlive the stack frame in which it is created, there is no need to allocate it on the heap via makeStringInfo() -- stack allocation is faster. While it's not a big deal unless the code is in a critical path, I don't see a reason not to save a few cycles -- using stack allocation is not less readable. I also cleaned up a bit of code along the way: moved variable declarations into a more tightly-enclosing scope where possible, fixed some pointless copying of strings in dblink, etc.
2006-03-01This patch makes the error message strings throughout the backendNeil Conway
more compliant with the error message style guide. In particular, errdetail should begin with a capital letter and end with a period, whereas errmsg should not. I also fixed a few related issues in passing, such as fixing the repeated misspelling of "lexeme" in contrib/tsearch2 (per Tom's suggestion).
2006-02-28Fix typo in comment.Neil Conway