summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2005-07-02Use on/off consistently for GUC variables in postgresql.conf and theBruce Momjian
documentation, to match SHOW.
2005-07-02Add E'' to internally created SQL strings that contain backslashes.Bruce Momjian
Improve code clarity by using macros for E'' processing.
2005-07-02In PL/PgSQL, allow a block's label to be optionally specified at theNeil Conway
end of the block: <<label>> begin ... end label; Similarly for loops. This is per PL/SQL. Update the documentation and add regression tests. Patch from Pavel Stehule, code review by Neil Conway.
2005-07-01Fix platform-dependency in recently added regression tests.Tom Lane
Per buildfarm results.
2005-07-01Add code to pg_dump to use E'' strings when backslashes are used in dumpBruce Momjian
files.
2005-07-01Avoid function name conflict when plpgsql and rangefuncs regression testsTom Lane
execute in parallel. Spotted by Peter.
2005-07-01Migrate rtree_gist functionality into the core system, and add someTom Lane
basic regression tests for GiST to the standard regression tests. I took the opportunity to add an rtree-equivalent gist opclass for circles; the contrib version only covered boxes and polygons, but indexing circles is very handy for distance searches.
2005-07-01Update to autoconf 2.59 as well as updates of related scriptsPeter Eisentraut
2005-07-01Clarify code to double \\ and '.Bruce Momjian
2005-07-01Clarify documentation about log_min_duration_statement.Bruce Momjian
2005-07-01Improve error messages and add commentTeodor Sigaev
2005-07-01Adds some missing error handling to PGTYPESnumeric_div() in ecpg'sNeil Conway
pgtypeslib: (1) we need to check the return value of sub_abs() (2) we need to check the return value of 4 calls to digitbuf_alloc(). Per Coverity static analysis performed by EnterpriseDB.
2005-07-01Fix some minor infelicities in ecpg's pgtypeslib: (1) `pstr' must beNeil Conway
non-NULL in this function, so there is no need to check for it (2) we should check the return value of pgtypes_strdup(). Patch from Eric Astor at EnterpriseDB, with slight cleanup by myself, per a report from the Coverity tool.
2005-06-30Bug fixes for GiST crash recovery.Teodor Sigaev
- add forgotten check of lsn for insert completion - remove level of pages: hard to check in recovery - some cleanups
2005-06-30Issue fatal error if no TCP/IP sockets could be createdPeter Eisentraut
2005-06-30Minor ecpg tweak: the return value of calloc() is guaranteed to be NULLNeil Conway
or zero-filled; therefore zero-filling it via memset() is pointless. (I think setting `errno' is probably a waste of cycles as well, but I haven't changed that.)
2005-06-30Warning cleanups for ecpg tests. Avoid doing pointer arithmetic on void *,Neil Conway
remove old-style function declarations, and mark a function "static". There are some remaining warnings, but this fixes most of them, anyway.
2005-06-30Fix ecpg's test/ Makefile for out-of-tree (vpath) builds.Neil Conway
2005-06-30Fix build break on BSD, OSX, and other systems: add missing <sys/time.h>Neil Conway
include.
2005-06-30Dump comments for large objects.Tom Lane
2005-06-30Fix a theoretical memory leak in pg_password_sendauth(). If the firstNeil Conway
malloc() succeeded but the second failed, the buffer allocated by the first malloc() would be leaked. Fix this by allocating both buffers via a single malloc(), as suggested by Tom. Per Coverity static analysis performed by EnterpriseDB.
2005-06-30Improve the checkpoint signaling mechanism so that the bgwriter can tellTom Lane
the difference between checkpoints forced due to WAL segment consumption and checkpoints forced for other reasons (such as CREATE DATABASE). Avoid generating 'checkpoints are occurring too frequently' messages when the checkpoint wasn't caused by WAL segment consumption. Per gripe from Chris K-L.
2005-06-29Clean up the rather historically encumbered interface to now() andTom Lane
current time: provide a GetCurrentTimestamp() function that returns current time in the form of a TimestampTz, instead of separate time_t and microseconds fields. This is what all the callers really want anyway, and it eliminates low-level dependencies on AbsoluteTime, which is a deprecated datatype that will have to disappear eventually.
2005-06-29More cleanup on roles patch. Allow admin option to be inherited throughTom Lane
role memberships; make superuser/createrole distinction do something useful; fix some locking and CommandCounterIncrement issues; prevent creation of loops in the membership graph.
2005-06-29Cleanup, remove unneeded pallocsTeodor Sigaev
2005-06-28Update typedefs for pgindent.Bruce Momjian
2005-06-28Change awk ~ pattern from "" to //.Bruce Momjian
Remove extra backslash in pattern. Luke Lonergan
2005-06-28Fix up problems in write_auth_file and parsing of the auth file.Tom Lane
In particular, make hba.c cope with zero-length tokens, which it never did properly before. Also, enforce rolcanlogin.
2005-06-28Bring syntax of role-related commands into SQL compliance. To avoidTom Lane
syntactic conflicts, both privilege and role GRANT/REVOKE commands have to use the same production for scanning the list of tokens that might eventually turn out to be privileges or role names. So, change the existing GRANT/REVOKE code to expect a list of strings not pre-reduced AclMode values. Fix a couple other minor issues while at it, such as InitializeAcl function name conflicting with a Windows system function.
2005-06-28Code cleanup. gistfillbuffer accepts InvalidOffsetNumber.Teodor Sigaev
2005-06-28Fix broken initdb -W option, per Michael Fuhr.Tom Lane
2005-06-28Replace pg_shadow and pg_group by new role-capable catalogs pg_authidTom Lane
and pg_auth_members. There are still many loose ends to finish in this patch (no documentation, no regression tests, no pg_dump support for instance). But I'm going to commit it now anyway so that Alvaro can make some progress on shared dependencies. The catalog changes should be pretty much done.
2005-06-27Concurrency for GiSTTeodor Sigaev
- full concurrency for insert/update/select/vacuum: - select and vacuum never locks more than one page simultaneously - select (gettuple) hasn't any lock across it's calls - insert never locks more than two page simultaneously: - during search of leaf to insert it locks only one page simultaneously - while walk upward to the root it locked only parent (may be non-direct parent) and child. One of them X-lock, another may be S- or X-lock - 'vacuum full' locks index - improve gistgetmulti - simplify XLOG records Fix bug in index_beginscan_internal: LockRelation may clean rd_aminfo structure, so move GET_REL_PROCEDURE after LockRelation
2005-06-27Modify pg_dump to assume that a check constraint is inherited if itsTom Lane
name matches the name of any parent-table constraint, without looking at the constraint text. This is a not-very-bulletproof workaround for the problem exhibited by Berend Tober last month. We really ought to record constraint inheritance status in pg_constraint, but it's looking like that may not get done for 8.1 --- and even if it does, we will need this kluge for dumping from older servers.
2005-06-27Remove support for Kerberos V4. It seems no one is using this, it hasNeil Conway
some security issues, and upstream has declared it "dead". Patch from Magnus Hagander, minor editorialization from Neil Conway.
2005-06-26Tweak dynahash.c to not allocate so many entries at once when dealingTom Lane
with a table that has a small predicted size. Avoids wasting several hundred K on the timezone hash table, which is likely to have only one or a few entries, but the entries use up 10Kb apiece ...
2005-06-26Add Oracle-compatible GREATEST and LEAST functions. Pavel StehuleTom Lane
2005-06-26Code review for escape-strings patch. Sync psql and plpgsql lexersTom Lane
with main, avoid using a SQL-defined SQLSTATE for what is most definitely not a SQL-compatible error condition, fix documentation omissions, adhere to message style guidelines, don't use two GUC_REPORT variables when one is sufficient. Nothing done about pg_dump issues.
2005-06-26Fix overlooked regression output file.Tom Lane
2005-06-26Add E'' syntax so eventually normal strings can treat backslashesBruce Momjian
literally. Add GUC variables: "escape_string_warning" - warn about backslashes in non-E strings "escape_string_syntax" - supports E'' syntax? "standard_compliant_strings" - treats backslashes literally in '' Update code to use E'' when escapes are used.
2005-06-25Fix a couple of items that should be declared Oid not int. PurelyTom Lane
cosmetic at the moment, but someday Oid might be 64 bits ...
2005-06-25Remove forced CHECKPOINT in regression tests --- redundant now thatTom Lane
CREATE DATABASE does one internally.
2005-06-25Force a checkpoint before committing a CREATE DATABASE command. ThisTom Lane
should fix the recent reports of "index is not a btree" failures, as well as preventing a more obscure race condition involving changes to a template database just after copying it with CREATE DATABASE.
2005-06-25Fix ancient memory leak in index_create(): RelationInitIndexAccessInfoTom Lane
was being called twice in normal operation, leading to a leak of one set of relcache subsidiary info. Per report from Jeff Gold.
2005-06-24Extend r-tree operator classes to handle Y-direction tests equivalentTom Lane
to the existing X-direction tests. An rtree class now includes 4 actual 2-D tests, 4 1-D X-direction tests, and 4 1-D Y-direction tests. This involved adding four new Y-direction test operators for each of box and polygon; I followed the PostGIS project's lead as to the names of these operators. NON BACKWARDS COMPATIBLE CHANGE: the poly_overleft (&<) and poly_overright (&>) operators now have semantics comparable to box_overleft and box_overright. This is necessary to make r-tree indexes work correctly on polygons. Also, I changed circle_left and circle_right to agree with box_left and box_right --- formerly they allowed the boundaries to touch. This isn't actually essential given the lack of any r-tree opclass for circles, but it seems best to sync all the definitions while we are at it.
2005-06-24unbreak unicode/utf8 testTatsuo Ishii
2005-06-24Remove overspecification of precision of CURRENT_TIMESTAMP, LOCALTIMESTAMP,Tom Lane
CURRENT_TIME, and LOCALTIME: now they just produce "timestamptz" not "timestamptz(6)", etc. This makes the behavior more consistent with our choice to not assign a specific default precision to column datatypes. It should also save a few cycles at runtime due to not having to invoke the round-to-given-precision functions. I also took the opportunity to translate CURRENT_TIMESTAMP into "now()" instead of an invocation of the timestamptz input converter --- this should save a few cycles too.
2005-06-24Allow direct conversion between EUC_JP and SJIS to improveTatsuo Ishii
performance. patches submitted by Atsushi Ogawa.
2005-06-24Code cleanup: remove 3 duplicate static function declarations.Neil Conway
2005-06-24This trivial patch removes an unused variable. From Alvaro Herrera.Neil Conway