summaryrefslogtreecommitdiff
path: root/doc/src/sgml
AgeCommit message (Collapse)Author
2008-08-21Mention that pg_dump does not dump ALTER DATABASE ... SET commands;Bruce Momjian
backpatch to 8.3.X. Also fix markup that had just one bullet.
2008-08-19Cause the output from debug_print_parse, debug_print_rewritten, andTom Lane
debug_print_plan to appear at LOG message level, not DEBUG1 as historically. Make debug_pretty_print default to on. Also, cause plans generated via EXPLAIN to be subject to debug_print_plan. This is all to make debug_print_plan a reasonably comfortable substitute for the former behavior of EXPLAIN VERBOSE.
2008-08-15Make the temporary directory for pgstat files configurable by the GUCMagnus Hagander
variable stats_temp_directory, instead of requiring the admin to mount/symlink the pg_stat_tmp directory manually. For now the config variable is PGC_POSTMASTER. Room for further improvment that would allow it to be changed on-the-fly.
2008-08-14Implement SEMI and ANTI joins in the planner and executor. (Semijoins replaceTom Lane
the old JOIN_IN code, but antijoins are new functionality.) Teach the planner to convert appropriate EXISTS and NOT EXISTS subqueries into semi and anti joins respectively. Also, LEFT JOINs with suitable upper-level IS NULL filters are recognized as being anti joins. Unify the InClauseInfo and OuterJoinInfo infrastructure into "SpecialJoinInfo". With that change, it becomes possible to associate a SpecialJoinInfo with every join attempt, which permits some cleanup of join selectivity estimation. That needs to be taken much further than this patch does, but the next step is to change the API for oprjoin selectivity functions, which seems like material for a separate patch. So for the moment the output size estimates for semi and especially anti joins are quite bogus.
2008-08-14pg_buffercache needs to be taught about relation forks, as Greg StarkHeikki Linnakangas
pointed out.
2008-08-05Move pgstat.tmp into a temporary directory under $PGDATA named pg_stat_tmp.Magnus Hagander
This allows the use of a ramdrive (either through mount or symlink) for the temporary file that's written every half second, which should reduce I/O. On server shutdown/startup, the file is written to the old location in the global directory, to preserve data across restarts. Bump catversion since the $PGDATA directory layout changed.
2008-07-31Require superuser privilege to create base types (but not composites, enums,Tom Lane
or domains). This was already effectively required because you had to own the I/O functions, and the I/O functions pretty much have to be written in C since we don't let PL functions take or return cstring. But given the possible security consequences of a malicious type definition, it seems prudent to enforce superuser requirement directly. Per recent discussion.
2008-07-30Allow I/O conversion casts to be applied to or from any type that is a memberTom Lane
of the STRING type category, thereby opening up the mechanism for user-defined types. This is mainly for the benefit of citext, though; there aren't likely to be a lot of types that are all general-purpose character strings. Per discussion with David Wheeler.
2008-07-30Flip the default typispreferred setting from true to false. This affectsTom Lane
only type categories in which the previous coding made *every* type preferred; so there is no change in effective behavior, because the function resolution rules only do something different when faced with a choice between preferred and non-preferred types in the same category. It just seems safer and less surprising to have CREATE TYPE default to non-preferred status ...
2008-07-30Replace the hard-wired type knowledge in TypeCategory() and IsPreferredType()Tom Lane
with system catalog lookups, as was foreseen to be necessary almost since their creation. Instead put the information into two new pg_type columns, typcategory and typispreferred. Add support for setting these when creating a user-defined base type. The category column is just a "char" (i.e. a poor man's enum), allowing a crude form of user extensibility of the category list: just use an otherwise-unused character. This seems sufficient for foreseen uses, but we could upgrade to having an actual category catalog someday, if there proves to be a huge demand for custom type categories. In this patch I have attempted to hew exactly to the behavior of the previous hardwired logic, except for introducing new type categories for arrays, composites, and enums. In particular the default preferred state for user-defined types remains TRUE. That seems worth revisiting, but it should be done as a separate patch from introducing the infrastructure. Likewise, any adjustment of the standard set of categories should be done separately.
2008-07-29Add a new, improved version of citext as a contrib module.Tom Lane
David E. Wheeler
2008-07-29Cleanup reference to config.pl so it makes sense not only inMagnus Hagander
SGML source but in the actual web/pdf viewer...
2008-07-29Document which versions of ActivePerl and ActiveTcl are requiredMagnus Hagander
for building on MSVC, and that the free distribution is enough (no need for the enterprise version). Per gripe from Martin Zaun.
2008-07-23Abort if Tcl support was configured and no tcl shell was found.Peter Eisentraut
This is required because the value is substituted into the pltcl_*mod scripts.
2008-07-22Update link to Oleg and Teodor's GIN page.Tom Lane
(Extracted from fast-insert patch, since it ought to be back-patched)
2008-07-21Code review for array_fill patch: fix inadequate check for array size overflowTom Lane
and bogus documentation (dimension arrays are int[] not anyarray). Also the errhint() messages seem to be really errdetail(), since there is nothing heuristic about them. Some other trivial cosmetic improvements.
2008-07-20Add a pg_dump option --lock-wait-timeout to allow failing the dump if unableTom Lane
to acquire shared table locks within a specified amount of time. David Gould
2008-07-18Properly document archive/restore command examples on Windows.Bruce Momjian
ITAGAKI Takahiro
2008-07-18Implement SQL-spec RETURNS TABLE syntax for functions.Tom Lane
(Unlike the original submission, this patch treats TABLE output parameters as being entirely equivalent to OUT parameters -- tgl) Pavel Stehule
2008-07-16Add a "provariadic" column to pg_proc to eliminate the remarkably expensiveTom Lane
need to deconstruct proargmodes for each pg_proc entry inspected by FuncnameGetCandidates(). Fixes function lookup performance regression caused by yesterday's variadic-functions patch. In passing, make pg_proc.probin be NULL, rather than a dummy value '-', in cases where it is not actually used for the particular type of function. This should buy back some of the space cost of the extra column.
2008-07-16Support "variadic" functions, which can accept a variable number of argumentsTom Lane
so long as all the trailing arguments are of the same (non-array) type. The function receives them as a single array argument (which is why they have to all be the same type). It might be useful to extend this facility to aggregates, but this patch doesn't do that. This patch imposes a noticeable slowdown on function lookup --- a follow-on patch will fix that by adding a redundant column to pg_proc. Pavel Stehule
2008-07-16Add array_fill() to create arrays initialized with a value.Bruce Momjian
Pavel Stehule
2008-07-15Fix alignment of SGML array docs.Bruce Momjian
2008-07-15Add Swedish_Sweden.1252 Windows locale example to docs.Bruce Momjian
2008-07-15Clarify that locale names on Windows are more verbose.Bruce Momjian
Report from Martin Saschek
2008-07-14Create a type-specific typanalyze routine for tsvector, which collects statsTom Lane
on the most common individual lexemes in place of the mostly-useless default behavior of counting duplicate tsvectors. Future work: create selectivity estimation functions that actually do something with these stats. (Some other things we ought to look at doing: using the Lossy Counting algorithm in compute_minimal_stats, and using the element-counting idea for stats on regular arrays.) Jan Urbanski
2008-07-12Fix a couple of stray misuses of "binary compatible".Tom Lane
2008-07-11Multi-column GIN indexes. Teodor SigaevTom Lane
2008-07-11Allow binary-coercible types for cast function arguments and return types.Peter Eisentraut
Document return type of cast functions. Also change documentation to prefer the term "binary coercible" in its present sense instead of the previous term "binary compatible".
2008-07-10Add unchangeable GUC "variables" segment_size, wal_block_size, andTom Lane
wal_segment_size to make those configuration parameters available to clients, in the same way that block_size was previously exposed. Bernd Helmle, with comments from Abhijit Menon-Sen and some further tweaking by me.
2008-07-07Added documentation for function xmlagg.Peter Eisentraut
2008-07-03Add a function pg_get_keywords() to let clients find out the set of keywordsTom Lane
known to the SQL parser. Dave Page
2008-07-03Don't print the name of the database in psql \z.Peter Eisentraut
2008-07-03Fix psql's \d and allied commands to work with all server versions back to 7.4.Tom Lane
Guillaume Lelarge, with some additional fixes by me.
2008-07-01Documentation patch by Kevin L. McBride explaining GUC lock variables,Bruce Momjian
which are available if LOCK_DEBUG is defined.
2008-06-30Turn PGBE_ACTIVITY_SIZE into a GUC variable, track_activity_query_size.Heikki Linnakangas
As the buffer could now be a lot larger than before, and copying it could thus be a lot more expensive than before, use strcpy instead of memcpy to copy the query string, as was already suggested in comments. Also, only copy the PgBackendStatus struct and string if the slot is in use. Patch by Thomas Lee, with some changes by me.
2008-06-27Mention actual function names in documentation of how to pass binaryBruce Momjian
values to libpq.
2008-06-27Clarify plpgsql documentation by not treating IF THEN ELSE IF ... as aTom Lane
truly distinct version of IF. Per suggestion from Marko Kreen.
2008-06-26Use SGML table to show backslash string escapes, rather than have themBruce Momjian
appear in a paragraph. Andy Anderson
2008-06-26Remove use of postmaster.opts.default by pg_ctl.Bruce Momjian
2008-06-23Backup wording improvement.Bruce Momjian
Joshua D. Drake
2008-06-23Add libpq comment about how to determine the format used for passingBruce Momjian
binary values. Add comments to libpq C function for parameter passing.
2008-06-18Fix a few typos in the DTrace docs. Patch from Euler Taveira de Oliveira,Neil Conway
along with an additional typo I noticed along the way.
2008-06-16Rewrite docs section about routine vacuuming --- it's gotten rather mangled ofTom Lane
late, with lots of redundancy, bad grammar, and just plain poor exposition. Make it clear that autovacuum is now considered the normal solution.
2008-06-15Rearrange ALTER TABLE syntax processing as per my recent proposal: theTom Lane
grammar allows ALTER TABLE/INDEX/SEQUENCE/VIEW interchangeably for all subforms of those commands, and then we sort out what's really legal at execution time. This allows the ALTER SEQUENCE/VIEW reference pages to fully document all the ALTER forms available for sequences and views respectively, and eliminates a longstanding cause of confusion for users. The net effect is that the following forms are allowed that weren't before: ALTER SEQUENCE OWNER TO ALTER VIEW ALTER COLUMN SET/DROP DEFAULT ALTER VIEW OWNER TO ALTER VIEW SET SCHEMA (There's no actual functionality gain here, but formerly you had to say ALTER TABLE instead.) Interestingly, the grammar tables actually get smaller, probably because there are fewer special cases to keep track of. I did not disallow using ALTER TABLE for these operations. Perhaps we should, but there's a backwards-compatibility issue if we do; in fact it would break existing pg_dump scripts. I did however tighten up ALTER SEQUENCE and ALTER VIEW to reject non-sequences and non-views in the new cases as well as a couple of cases where they didn't before. The patch doesn't change pg_dump to use the new syntaxes, either.
2008-06-14In log_filename documentation, mention that strftime is not used directly toAlvaro Herrera
expand the pattern specifier. Per gripe from Josh Drake.
2008-06-12Use macro to document size of ecpg sqlerrmc string.Bruce Momjian
2008-06-11Add optional on/off argument to \timing.Heikki Linnakangas
David Fetter.
2008-06-10Make XML building work silently on VPATH builds (untested on regular builds).Alvaro Herrera
2008-06-08Update release notes for ALTER AGGREGATE fix.Tom Lane