summaryrefslogtreecommitdiff
path: root/doc/src
AgeCommit message (Collapse)Author
2002-08-15Tom Lane wrote:Bruce Momjian
> There's no longer a separate call to heap_storage_create in that routine > --- the right place to make the test is now in the storage_create > boolean parameter being passed to heap_create. A simple change, but > it passeth patch's understanding ... Thanks. Attached is a patch against cvs tip as of 8:30 PM PST or so. Turned out that even after fixing the failed hunks, there was a new spot in bufmgr.c which needed to be fixed (related to temp relations; RelationUpdateNumberOfBlocks). But thankfully the regression test code caught it :-) Joe Conway
2002-08-15Reorder entry to be alphabetical to match others.Bruce Momjian
2002-08-15PostgreSQL 7.2.1 DocumentationBruce Momjian
Chapter 1. libpq - C Library 1.3. Command Execution Functions 1.3.3. Escaping binary strings for inclusion in SQL queries I found the line "The result string length does not include the terminating zero byte of the result." is not right. The result string length does indeed include the terminating zero byte. Christoph Haller
2002-08-15> Neil Conway <nconway@klamath.dyndns.org> writes:Bruce Momjian
> > This patch improves the documentation of the UPDATE and ALTER TABLE > > commands to elaborate on the effect of specifying an "ONLY" clause. > > Unfortunately this is still only half the truth ... see the > SQL_INHERITANCE configuration variable. Okay, I've attached an updated patch with more information on SQL_INHERITANCE and inheritance behavior in prior releases. Neil Conway
2002-08-15I'm giving a try at some TODO items. Currently it's the turn of theBruce Momjian
PGPASSWORDFILE environment variable. I have modified libpq to make use of this variable. I present the first cut here. Currently the format for the file should be host:port:database:user:password Alvaro Herrera
2002-08-14Add Cyrillic and other encodings for encoding conversion.Tatsuo Ishii
Patches submitted by Kaori Inaba (i-kaori@sra.co.jp).
2002-08-13Update for longer NAMEDATALEN.Bruce Momjian
2002-08-13Change NAMEDATALEN to 64, INDEX_MAX_KEYS/MAX_FUNC_ARGS to 32, per ↵Bruce Momjian
discussion on hackers.
2002-08-13Remove obsolete uses of lanispl. Only used in pg_dump now, but can bePeter Eisentraut
removed altogether if pg_dump doesn't need it anymore.
2002-08-12Correct description of sequence privileges.Peter Eisentraut
2002-08-12Change memory-space accounting mechanism in tuplesort.c and tuplestore.cTom Lane
to make a reasonable attempt at accounting for palloc overhead, not just the requested size of each memory chunk. Since in many scenarios this will make for a significant reduction in the amount of space acquired, partially compensate by doubling the default value of SORT_MEM to 1Mb. Per discussion in pgsql-general around 9-Jun-2002..
2002-08-11Code review of CLUSTER patch. Clean up problems with relcache gettingTom Lane
confused, toasted data getting lost, etc.
2002-08-11Create/drop cast now requires ownership of at least one of the types.Peter Eisentraut
2002-08-11Editorial improvements.Tom Lane
2002-08-10Mention ANALYZE after CLUSTER.Bruce Momjian
2002-08-10Major improvement in CLUSTER which preserves table characteristics usingBruce Momjian
relfilenode. I sent the CLUSTER patch a few days ago and I think it was missed. I append it again, this time including the regression test files. For the committer, please note that you have to cvs add the files as they don't exist. Maybe add to the parallel and serial schedules also, but I don't know such stuff. Alvaro Herrera (<alvherre[a]atentus.com>)
2002-08-10psql prints its version number in its startup message, per recentTom Lane
discussion. Also, cause the \timing command to display time in a format consistent with the backend's EXPLAIN ANALYZE output.
2002-08-10Allow schema-qualified operator names to be used in the optionalTom Lane
arguments of CREATE OPERATOR.
2002-08-10Make sure all clients have the same understanding of default user namePeter Eisentraut
and database. In particular, make script wrappers understand the PGDATABASE environment variable.
2002-08-10psql backslash commands are schema-aware. Pattern matching behaviorTom Lane
follows recent pghackers discussion. This commit includes all the relevant fixes from Greg Mullane's patch of 24-June.
2002-08-09Make sure monetary, numeric, and time locale categories are set to C andPeter Eisentraut
are only activated temporarily to read out formatting information.
2002-08-09has_table_privilege spawns scions has_database_privilege, ↵Tom Lane
has_function_privilege, has_language_privilege, has_schema_privilege to let SQL queries test all the new privilege types in 7.3. Also, add functions pg_table_is_visible, pg_type_is_visible, pg_function_is_visible, pg_operator_is_visible, pg_opclass_is_visible to test whether objects contained in schemas are visible in the current search path. Do some minor cleanup to centralize accesses to pg_database, as well.
2002-08-08Some improvements in geometric-operators documentation.Tom Lane
2002-08-08Fix bug in encoding conversion tableTatsuo Ishii
2002-08-06Add SQL99 CONVERT() function.Tatsuo Ishii
2002-08-06This patch fixes two typos in the documentation for the newly addedBruce Momjian
START TRANSACTION command. Neil Conway
2002-08-05Forgot to add/remove files.Peter Eisentraut
2002-08-05Add User's Guide chapters on Data Definition and Data Manipulation.Peter Eisentraut
Still needs to be filled with more information, but it gives us a framework to have a User's Guide with complete coverage of the basic SQL operations. Move arrays into data type chapter, inheritance into DDL chapter (for now). Make <comment>s show up in the output while the version number ends in "devel". Allow cross-book references with entities &cite-user; etc.
2002-08-05Preliminary code review for anonymous-composite-types patch: fix breakageTom Lane
of functions returning domain types, update documentation for typtype, move get_typtype to lsyscache.c (actually, resurrect the old version), add defense against creating pseudo-typed table columns, fix some bogus list-parsing in grammar. Issues remain with respect to alias handling and type checking; Joe is on those.
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