summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2002-08-04Rename backend_pid to pg_backend_pid, move docs to monitoring section.Bruce Momjian
2002-08-04Attached are two patches to implement and document anonymous compositeBruce Momjian
types for Table Functions, as previously proposed on HACKERS. Here is a brief explanation: 1. Creates a new pg_type typtype: 'p' for pseudo type (currently either 'b' for base or 'c' for catalog, i.e. a class). 2. Creates new builtin type of typtype='p' named RECORD. This is the first of potentially several pseudo types. 3. Modify FROM clause grammer to accept: SELECT * FROM my_func() AS m(colname1 type1, colname2 type1, ...) where m is the table alias, colname1, etc are the column names, and type1, etc are the column types. 4. When typtype == 'p' and the function return type is RECORD, a list of column defs is required, and when typtype != 'p', it is disallowed. 5. A check was added to ensure that the tupdesc provide via the parser and the actual return tupdesc match in number and type of attributes. When creating a function you can do: CREATE FUNCTION foo(text) RETURNS setof RECORD ... When using it you can do: SELECT * from foo(sqlstmt) AS (f1 int, f2 text, f3 timestamp) or SELECT * from foo(sqlstmt) AS f(f1 int, f2 text, f3 timestamp) or SELECT * from foo(sqlstmt) f(f1 int, f2 text, f3 timestamp) Included in the patches are adjustments to the regression test sql and expected files, and documentation. p.s. This potentially solves (or at least improves) the issue of builtin Table Functions. They can be bootstrapped as returning RECORD, and we can wrap system views around them with properly specified column defs. For example: CREATE VIEW pg_settings AS SELECT s.name, s.setting FROM show_all_settings()AS s(name text, setting text); Then we can also add the UPDATE RULE that I previously posted to pg_settings, and have pg_settings act like a virtual table, allowing settings to be queried and set. Joe Conway
2002-08-04Add IS OF type predicate.Thomas G. Lockhart
2002-08-04Add Myannar Time, Iran Time variant name, and Marquesas Time.Thomas G. Lockhart
2002-08-04Fix broken markup.Tom Lane
2002-08-04Neil's patch claimed a column list didn't work for COPY BINARY.Tom Lane
Which was true when he submitted it, but is so no longer.
2002-08-04Add missing file; new docs for start_transaction.Bruce Momjian
2002-08-04This patch fixes a probably harmless write of uninitialized memory inBruce Momjian
the statistics collector and makes a number of corrections to the documentation for SET, SHOW, and COPY. Neil Conway
2002-08-04The attached patch implements START TRANSACTION, per SQL99. TheBruce Momjian
functionality of the command is basically identical to that of BEGIN; it just accepts a few extra options (only one of which PostgreSQL currently implements), and is standards-compliant. The patch includes a simple regression test and documentation. [ Regression tests removed, per Peter.] Neil Conway
2002-08-04Here is a doc patch for the SHOW X changes and new config-settingsBruce Momjian
functions. If there are no objections, please apply. Joe Conway
2002-08-02ALTER TABLE DROP COLUMN works. Patch by Christopher Kings-Lynne,Tom Lane
code review by Tom Lane. Remaining issues: functions that take or return tuple types are likely to break if one drops (or adds!) a column in the table defining the type. Need to think about what to do here. Along the way: some code review for recent COPY changes; mark system columns attnotnull = true where appropriate, per discussion a month ago.
2002-07-31Instead of having a configure-time DEFAULT_ATTSTATTARGET, store -1 inTom Lane
attstattarget to indicate 'use the default'. The default is now a GUC variable default_statistics_target, and so may be changed on the fly. Along the way we gain the ability to have pg_dump dump the per-column statistics target when it's not the default. Patch by Neil Conway, with some kibitzing from Tom Lane.
2002-07-31Move backend_pid to functions/misc.Bruce Momjian
2002-07-31Rename pid function to backend_pid().Bruce Momjian
2002-07-30Would it be wise to have the plsql.sgml file renamed to plpgsql.sgml?Bruce Momjian
All of the internal tags are of the latter. The other thing I noticed is that most of the quick examples in the file use a para and synopsis. Is there a reason we're not using <example/> ? Rod Taylor
2002-07-30Replace ad-hoc insertions into pg_opclass and friends with CREATETom Lane
OPERATOR CLASS commands. Further tweaking of documentation for same.
2002-07-30IMPROVED VERSION APPLIED:Bruce Momjian
The attached patch completes the following TODO item: * Generate failure on short COPY lines rather than pad NULLs I also restructed a lot of the existing COPY code, did some code review on the column list patch sent in by Brent Verner a little while ago, and added some regression tests. I also added an explicit check (and resultant error) for extra data before the end-of-line. Neil Conway
2002-07-30Here are two patches. The guc_and_tablefunc patch addresses the twoBruce Momjian
changes mentioned above, and also adds a new function to the tablefunc API. The tablefunc API change adds the following function: * Oid foidGetTypeId(Oid foid) - Get a function's typeid given the * function Oid. Use this together with TypeGetTupleDesc() to get a * TupleDesc which is derived from the function's declared return type. In the next post I'll send the contrib/tablefunc patch, which illustrates the usage of this new function. Also attached is a doc patch for this change. The doc patch also adds a function that I failed to document previously. Joe Conway
2002-07-30Update contributions link.Bruce Momjian
2002-07-30Rewrite xindex.sgml for CREATE OPERATOR CLASS. catalogs.sgml finallyTom Lane
contains descriptions of every single system table. Update 'complex' tutorial example too.
2002-07-30Update FAQ.Bruce Momjian
2002-07-29Update FAQ.Bruce Momjian
2002-07-29Implement CREATE/DROP OPERATOR CLASS. Work still remains: need moreTom Lane
documentation (xindex.sgml should be rewritten), need to teach pg_dump about it, need to update contrib modules that currently build pg_opclass entries by hand. Original patch by Bill Studenmund, grammar adjustments and general update for 7.3 by Tom Lane.
2002-07-28Structure reference pages consistently. Document that structure.Peter Eisentraut
Add information about environment variables.
2002-07-28Clean documentation subtree during make clean.Peter Eisentraut
2002-07-24Remove unused system table columns:Peter Eisentraut
pg_language.lancompiler pg_operator.oprprec pg_operator.oprisleft pg_proc.proimplicit pg_proc.probyte_pct pg_proc.properbyte_cpu pg_proc.propercall_cpu pg_proc.prooutin_ratio pg_shadow.usetrace pg_type.typprtlen pg_type.typreceive pg_type.typsend Attempts to use the obsoleted attributes of pg_operator or pg_proc in the CREATE commands will be greeted by a warning. For pg_type, there is no warning (yet) because pg_dump scripts still contain these attributes. Also remove new but already obsolete spellings isVolatile, isStable, isImmutable in WITH clause. (Use new syntax instead.)
2002-07-24Add pg_conversion system catalog. Update description for multibyte support.Tatsuo Ishii
2002-07-22Add unique index on pg_cast.oid, and document pg_cast table.Peter Eisentraut
2002-07-22Fix typo.Tatsuo Ishii
2002-07-22Add CREATE CONVERSION/DROP CONVERSOION reference manualTatsuo Ishii
2002-07-20Code review for SHOW output changes; fix horology expected files forTom Lane
new SHOW output format.
2002-07-19Make note that ALTER TABLE can change table owner these days.Tom Lane
2002-07-18pg_cast table, and standards-compliant CREATE/DROP CAST commands, plusPeter Eisentraut
extension to create binary compatible casts. Includes dependency tracking as well. pg_proc.proimplicit is now defunct, but will be removed in a separate commit. pg_dump provides a migration path from the previous scheme to declare casts. Dumping binary compatible casts is currently impossible, though.
2002-07-18Implement DROP SCHEMA. It lacks support for dropping conversions andTom Lane
operator classes, both of which are schema-local and so should really be droppable.
2002-07-18Fix copy-and-pasteo (CASCADE/RESTRICT in wrong place).Tom Lane
2002-07-18Here (finally ;-)) is a doc patch covering the Table Function C API. ItBruce Momjian
reflects the changes in the tablefunc-fix patch that I sent in the other day. It also refers to "see contrib/tablefunc for more examples", which is next on my list of things to finish and submit. Joe Conway
2002-07-18The attached patch (against HEAD) implementsBruce Momjian
COPY x (a,d,c,b) from stdin; COPY x (a,c) to stdout; as well as the corresponding changes to pg_dump to use the new functionality. This functionality is not available when using the BINARY option. If a column is not specified in the COPY FROM statement, its default values will be used. In addition to this functionality, I tweaked a couple of the error messages emitted by the new COPY <options> checks. Brent Verner
2002-07-16Add more dependency insertions --- this completes the basic pg_dependTom Lane
functionality. Of note: dropping a table that has a SERIAL column defined now drops the associated sequence automatically.
2002-07-16> pgsql-bugs@postgresql.org wrote:Bruce Momjian
> > David Clark (dclarknospam@opsi.co.za) reports a bug with a severity > > Table 3-7 SQL Literal escaped octets shows the input escape > > representation for a single quote as '\\'' , but the third paragraph > > below table 3-8 SQL Output Escaped Octets says that the single quote > > must be input as '\'' > > Nice catch. '\'' is correct as shown in the example in Table 3-7. > > > > > Also in the same paragraph mentioned above it says input for the > > single quote must be '\'' (or '\\134') shouldn't this be (or '\\047') > > Also a bug. Should be '\\047', as you pointed out. > Here's a patch to fix the binary string doc errors. Joe Conway
2002-07-16Add mention of TOAST storage for character columns.Bruce Momjian
2002-07-16Mark 'line' as 'not implemented' in SGML and psql \dT, per ThomasBruce Momjian
Lockhart. initdb not forced.
2002-07-16This fixes 2 inaccuracies in the recently added SQL99 feature list docs.Bruce Momjian
UNIQUE and DISTINCT predicates are both listed as implemented -- AFAIK, neither is. I also included another trivial patch which adds the default location of the DSSSL stylesheets on my system (Debian unstable, docbook-dsssl 1.76) to the list of paths that configure looks for. Neil Conway
2002-07-15Fix \? and \pset pager handling. \? wasn't honoring pager before.Bruce Momjian
2002-07-14Remove no-longer-appropriate notes about lack of CASCADE/RESTRICT behavior.Tom Lane
2002-07-13Add SET statement_timeout capability. Timeout is in ms. A value ofBruce Momjian
zero turns off the timer.
2002-07-13Re-add -I documentation, per Tom.Bruce Momjian
2002-07-12Second phase of committing Rod Taylor's pg_depend/pg_constraint patch.Tom Lane
pg_relcheck is gone; CHECK, UNIQUE, PRIMARY KEY, and FOREIGN KEY constraints all have real live entries in pg_constraint. pg_depend exists, and RESTRICT/CASCADE options work on most kinds of DROP; however, pg_depend is not yet very well populated with dependencies. (Most of the ones that are present at this point just replace formerly hardwired associations, such as the implicit drop of a relation's pg_type entry when the relation is dropped.) Need to add more logic to create dependency entries, improve pg_dump to dump constraints in place of indexes and triggers, and add some regression tests.
2002-07-11Remove references to pre-7.1; too old.Bruce Momjian
2002-07-11Update FAQ.Bruce Momjian
2002-07-10Fix pg_restore flags in documentation.Bruce Momjian