summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2007-08-15Add third idea about pulling data from indexes.Bruce Momjian
> A third idea would be for a heap scan to check if all rows are visible > and if so set a per-table flag which can be checked by index scans. > Any change to the table would have to clear the flag. To detect > changes during the heap scan a counter could be set at the start and > checked at the end --- if it is the same, the table has not been > modified --- any table change would increment the counter.
2007-08-15Fix whitespace in TODO.Bruce Momjian
2007-08-14Done for ecpg:Bruce Momjian
< o Use backend PREPARE/EXECUTE facility for ecpg where possible
2007-08-13TEMPORARILY make synchronous_commit default to OFF, so that we can get moreTom Lane
thorough testing of async-commit mode from the buildfarm. This patch MUST get reverted before 8.3 release!
2007-08-13Document that the regexp split functions ignore zero-length matches inTom Lane
certain corner cases. Per discussion, the code does what we want, but it really needs to be documented that these functions act differently from regexp_matches.
2007-08-11Code review for regexp_matches/regexp_split patch. Refactor to avoid assumingTom Lane
that cached compiled patterns will still be there when the function is next called. Clean up looping logic, thereby fixing bug identified by Pavel Stehule. Share setup code between the two functions, add some comments, and avoid risky mixing of int and size_t variables. Clean up the documentation a tad, and accept all the flag characters mentioned in table 9-19 rather than just a subset.
2007-08-06Fix incorrect URI for cvs rsyncMagnus Hagander
2007-08-04Switch over to using the src/timezone functions for formatting timestampsTom Lane
displayed in the postmaster log. This avoids Windows-specific problems with localized time zone names that are in the wrong encoding, and generally seems like a good idea to forestall other potential platform-dependent issues. To preserve the existing behavior that all backends will log in the same time zone, create a new GUC variable log_timezone that can only be changed on a system-wide basis, and reference log-related calculations to that zone instead of the TimeZone variable. This fixes the issue reported by Hiroshi Saito that timestamps printed by xlog.c startup could be improperly localized on Windows. We still need a simpler patch for that problem in the back branches, however.
2007-08-03Update supported standalone VC++ version to 7.1+ only, and fixMagnus Hagander
some bad data leftover in win32.mak. Per request from Hiroshi Saito.
2007-08-02Move session_start out of MyProcPort stucture and make it a global called ↵Andrew Dunstan
MyStartTime, so that we will be able to create a cookie for all processes for CSVlogs. It is set wherever MyProcPid is set. Take the opportunity to remove the now unnecessary session-only restriction on the %s and %c escapes in log_line_prefix.
2007-08-01Done:Bruce Momjian
< * Allow buffered WAL writes and fsync
2007-08-01Support an optional asynchronous commit mode, in which we don't flush WALTom Lane
before reporting a transaction committed. Data consistency is still guaranteed (unlike setting fsync = off), but a crash may lose the effects of the last few transactions. Patch by Simon, some editorialization by Tom.
2007-07-27Update conformance information about bigint typePeter Eisentraut
found by Michael Glaesemann
2007-07-25Implement RETURN QUERY for PL/PgSQL. This provides some convenient syntaxNeil Conway
sugar for PL/PgSQL set-returning functions that want to return the result of evaluating a query; it should also be more efficient than repeated RETURN NEXT statements. Based on an earlier patch from Pavel Stehule.
2007-07-24Create a new dedicated Postgres process, "wal writer", which exists to writeTom Lane
and fsync WAL at convenient intervals. For the moment it just tries to offload this work from backends, but soon it will be responsible for guaranteeing a maximum delay before asynchronously-committed transactions will be flushed to disk. This is a portion of Simon Riggs' async-commit patch, committed to CVS separately because a background WAL writer seems like it might be a good idea independently of the async-commit feature. I rebased walwriter.c on bgwriter.c because it seemed like a more appropriate way of handling signals; while the startup/shutdown logic in postmaster.c is more like autovac because we want walwriter to quit before we start the shutdown checkpoint.
2007-07-24Set a default autovacuum vacuum_cost_delay value of 20ms, to avoid excessiveAlvaro Herrera
I/O utilization, per discussion. While at it, lower the autovacuum vacuum and analyze threshold values to 50 tuples. It is a bit higher (i.e. more conservative) than what I originally proposed but much better than the old values for small tables.
2007-07-23Reword paragraph about the autovacuum_max_workers setting. Patch fromAlvaro Herrera
Jim Nasby.
2007-07-23SSPI authentication on Windows. GSSAPI compatible client when doing KerberosMagnus Hagander
against a Unix server, and Windows-specific server-side authentication using SSPI "negotiate" method (Kerberos or NTLM). Only builds properly with MSVC for now.
2007-07-21Provide a bit more high-level documentation for the GEQO planner.Tom Lane
Per request from Luca Ferrari.
2007-07-18GSSAPI documentationMagnus Hagander
2007-07-18Document that 'deleted' is also tracked by autovacuum.Bruce Momjian
2007-07-18Document that age() adds days, then full months.Bruce Momjian
2007-07-18Add:Bruce Momjian
> > o Allow GLOBAL temporary tables to exist as empty by default in > all sessions > > http://archives.postgresql.org/pgsql-hackers/2007-07/msg00006.php >
2007-07-17Remove http://www.benchmarkresources.com, no longer resolves to aBruce Momjian
meaningful site.
2007-07-17Implement CREATE TABLE LIKE ... INCLUDING INDEXES. Patch from NikhilS,Neil Conway
based in part on an earlier patch from Trevor Hardcastle, and reviewed by myself.
2007-07-17Add CVS Wiki URL to docs.Bruce Momjian
2007-07-17Add:Bruce Momjian
> * Allow multiple indexes to be created concurrently, ideally via a > single heap scan, and have a restore of a pg_dump somehow use it > > http://archives.postgresql.org/pgsql-general/2007-05/msg01274.php Small blank line additions.
2007-07-16Update docs that GNU tar versions >=1.16 exit with 1 on files changed, 2Bruce Momjian
on other errors.
2007-07-16Allow plpgsql function parameter names to be qualified with the function'sTom Lane
name. With this patch, it is always possible for the user to qualify a plpgsql variable name if needed to avoid ambiguity. While there is much more work to be done in this area, this simple change removes one unnecessary incompatibility with Oracle. Per discussion.
2007-07-15Note incompatibility with Oracle's version of FOR ... REVERSE, perTom Lane
Andrew Dunstan. Minor other improvements in documentation of integer FOR loops.
2007-07-14Editorial overhaul of plpgsql documentation. Provide detailed documentationTom Lane
of variable substitution and plan caching behavior in dedicated sections. (A lot of this material existed already, but was scattered in various places in the chapter.) Reorganize material a little bit, mostly to try to avoid diving into deep details in the first introductory sections. Document some fine points that had escaped treatment before, notably the ability to qualify plpgsql variable names with block labels. Some minor wordsmithing here and there.
2007-07-10Add note that building from CVS requires bison and flex, whereasTom Lane
building from a distribution tarball does not.
2007-07-10Adjust processSQLNamePattern() so that $ within the pattern is always matchedTom Lane
literally, whether quoted or not. Since we allow $ as a character within identifiers, this behavior is useful, whereas the previous behavior of treating it as the regexp ending anchor was nearly useless given that the pattern is automatically anchored anyway. This affects the arguments of psql's \d commands as well as pg_dump's -n and -t switches. Per discussion.
2007-07-09Minor copy-editing.Tom Lane
2007-07-08Closer code review for PQconnectionUsedPassword() patch: in particular,Tom Lane
not OK to include postgres_fe.h into libpq-fe.h, hence declare it as returning int not bool.
2007-07-08Fix broken markup.Tom Lane
2007-07-08Arrange for the authentication request type to be preserved inJoe Conway
PGconn. Invent a new libpq connection-status function, PQconnectionUsedPassword() that returns true if the server demanded a password during authentication, false otherwise. This may be useful to clients in general, but is immediately useful to help plug a privilege escalation path in dblink. Per list discussion and design proposed by Tom Lane.
2007-07-08Remove, per Magnus:Bruce Momjian
< o Check WSACancelBlockingCall() for interrupts [win32intr]
2007-07-05Improve description of SPI_scroll_cursor_move's return values, per aTom Lane
gripe by Pavel Stehule awhile ago.
2007-07-03Add ALTER VIEW ... RENAME TO, and a RENAME TO clause to ALTER SEQUENCE.Neil Conway
Sequences and views could previously be renamed using ALTER TABLE, but this was a repeated source of confusion for users. Update the docs, and psql tab completion. Patch from David Fetter; various minor fixes by myself.
2007-06-30Improve logging of checkpoints. Patch by Greg Smith, worked overTom Lane
by Heikki and a little bit by me.
2007-06-29Add a note that pg_start_backup will take awhile because of newTom Lane
distributed checkpoint behavior. Explain how to work around this by issuing a manual CHECKPOINT command. Per discussion with Heikki.
2007-06-28Done:Bruce Momjian
> * -Reduce checkpoint performance degredation by forcing data to disk
2007-06-28Add the function's volatility to the output of psql's \df+ command.Neil Conway
Update the psql reference page accordingly.
2007-06-28Implement "distributed" checkpoints in which the checkpoint I/O is spreadTom Lane
over a fairly long period of time, rather than being spat out in a burst. This happens only for background checkpoints carried out by the bgwriter; other cases, such as a shutdown checkpoint, are still done at full speed. Remove the "all buffers" scan in the bgwriter, and associated stats infrastructure, since this seems no longer very useful when the checkpoint itself is properly throttled. Original patch by Itagaki Takahiro, reworked by Heikki Linnakangas, and some minor API editorialization by me.
2007-06-26Fix PGXS conventions so that extensions can be built against PostgresTom Lane
installations whose pg_config program does not appear first in the PATH. Per gripe from Eddie Stanley and subsequent discussions with Fabien Coelho and others.
2007-06-22Add a <tip> that log_line_prefix should usually end with a space toTom Lane
provide visual separation from the rest of the log line; I've been noticing lately that quite a few newbies fail to figure this out for themselves. Also a little editorial cleanup of the log_line_prefix description.
2007-06-21Update password example.Peter Eisentraut
2007-06-21Update examples of create/drop scripts.Peter Eisentraut
2007-06-20Add a caveat pointing out that constraint exclusion doesn't work withTom Lane
constraints the planner is unable to disprove, hence simple btree-compatible conditions should be used. We've seen people try to get cute with stuff like date_part(something) = something at least twice now. Even if we wanted to try to teach predtest.c about the properties of date_part, most of the useful variants aren't immutable so nothing could be proved.