- May 18, 2002
-
-
Peter Eisentraut authored
-
- Apr 24, 2002
-
-
Bruce Momjian authored
The attached patch allows views to have default values. You can't specify a default value within a CREATE VIEW statement, it must be done using ALTER TABLE ... ALTER COLUMN ... SET DEFAULT after the view has already been created. Most of the hard work was done by Tom Lane, I just patched pg_dump and updated the documentation. Neil Conway <neilconway@rogers.com>
-
- Apr 23, 2002
-
-
Tom Lane authored
-
- Apr 21, 2002
-
-
Thomas G. Lockhart authored
capabilities of specifying time zones as intervals per SQL9x. Put refentrytitle contents on the same line as the tag. Otherwise, leading whitespace is propagated into the product, which (at least) messes up the ToC layout. Remove (some) docinfo tags containing dates. Best to omit if the dates are not accurate; maybe use CVS dates instead or leave them out.
-
- Apr 01, 2002
-
-
Tom Lane authored
-
- Mar 06, 2002
-
-
Bruce Momjian authored
Neil Conway
-
- Mar 05, 2002
-
-
Bruce Momjian authored
(current as of a few hours ago.) This patch: 1. Adds PG_GETARG_xxx_P_SLICE() macros and associated support routines. 2. Adds routines in src/backend/access/tuptoaster.c for fetching only necessary chunks of a toasted value. (Modelled on latest changes to assume chunks are returned in order). 3. Amends text_substr and bytea_substr to use new methods. It now handles multibyte cases -and should still lead to a performance improvement in the multibyte case where the substring is near the beginning of the string. 4. Added new command: ALTER TABLE tabname ALTER COLUMN colname SET STORAGE {PLAIN | EXTERNAL | EXTENDED | MAIN} to parser and documented in alter-table.sgml. (NB I used ColId as the item type for the storage mode string, rather than a new production - I hope this makes sense!). All this does is sets attstorage for the specified column. 4. AlterTableAlterColumnStatistics is now AlterTableAlterColumnFlags and handles both statistics and storage (it uses the subtype code to distinguish). The previous version of my patch also re-arranged other code in backend/commands/command.c but I have dropped that from this patch.(I plan to return to it separately). 5. Documented new macros (and also the PG_GETARG_xxx_P_COPY macros) in xfunc.sgml. ref/alter_table.sgml also contains documentation for ALTER COLUMN SET STORAGE. John Gray
-
- Feb 17, 2002
-
-
Bruce Momjian authored
-
Bruce Momjian authored
primary keys after the fact! Also, we need to add regression tests for alter table / add primary key and alter table / drop constraint. These shouldn't be added until 7.3 tho methinks... Chris
-
Bruce Momjian authored
e.g. table contraint definition -> table_constraint_definition.
-
- Jan 20, 2002
-
-
Peter Eisentraut authored
-
- Dec 08, 2001
-
-
Thomas G. Lockhart authored
between Postgres and PostgreSQL.
-
- Nov 22, 2001
-
-
Bruce Momjian authored
-
- Nov 18, 2001
-
-
Peter Eisentraut authored
-
- Nov 10, 2001
-
-
Tom Lane authored
-
- Oct 22, 2001
-
-
Peter Eisentraut authored
-
- Oct 12, 2001
-
-
Tom Lane authored
transformAlterStmt() use these routines, instead of having lots of duplicate (not to mention should-have-been-duplicate) code. Adding a column with a CHECK constraint actually works now, and the tests to reject unsupported DEFAULT and NOT NULL clauses actually fire now. ALTER TABLE ADD PRIMARY KEY works, modulo having to have created the column(s) NOT NULL already.
-
- Sep 12, 2001
-
-
Tatsuo Ishii authored
-
- Sep 07, 2001
-
-
Bruce Momjian authored
table creation time. Big deal you say - but this patch is the basis of the next thing which is adding PRIMARY KEYs after table creation time. (Which is currently impossible without twiddling catalogs) Rundown ------- * I have made the makeObjectName function of analyze.c non-static, and exported it in analyze.h * I have included analyze.h and defrem.h into command.c, to support makingObjectNames and creating indices * I removed the 'case CONSTR_PRIMARY' clause so that it properly fails and says you can't add primary keys, rather than just doing nothing and reporting nothing!!! * I have modified the docs. Algorithm --------- * If name specified is null, search for a new valid constraint name. I'm not sure if I should "lock" my generated name somehow tho - should I open the relation before doing this step? * Open relation in access exclusive mode * Check that the constraint does not already exist * Define the new index * Warn if they're doubling up on an existing index Christopher Kings-Lynne
-
- Sep 03, 2001
-
-
Peter Eisentraut authored
-
- May 30, 2001
-
-
Bruce Momjian authored
Christopher Kings
-
- May 09, 2001
-
-
Bruce Momjian authored
supported in 7.1.1, here is a patch to that alter_table.sgml that documents it. Christopher Kings-Lynne
-
- May 07, 2001
-
-
Tom Lane authored
a separate statement (though it can still be invoked as part of VACUUM, too). pg_statistic redesigned to be more flexible about what statistics are stored. ANALYZE now collects a list of several of the most common values, not just one, plus a histogram (not just the min and max values). Random sampling is used to make the process reasonably fast even on very large tables. The number of values and histogram bins collected is now user-settable via an ALTER TABLE command. There is more still to do; the new stats are not being used everywhere they could be in the planner. But the remaining changes for this project should be localized, and the behavior is already better than before. A not-very-related change is that sorting now makes use of btree comparison routines if it can find one, rather than invoking '<' twice.
-
- Mar 05, 2001
-
-
Bruce Momjian authored
not all of them attached properly in the post I made a few minutes ago. Please disregard those earlier files. The diffs in the tar file replace them. Pierce Tyler
-
- Feb 10, 2001
-
-
Bruce Momjian authored
-
Bruce Momjian authored
-
- Jan 14, 2001
-
-
Peter Eisentraut authored
etc.
-
- Jan 05, 2001
-
-
Tom Lane authored
and revert documentation to describe the existing INHERITS clause instead, per recent discussion in pghackers. Also fix implementation of SQL_inheritance SET variable: it is not cool to look at this var during the initial parsing phase, only during parse_analyze(). See recent bug report concerning misinterpretation of date constants just after a SET TIMEZONE command. gram.y really has to be an invariant transformation of the query string to a raw parsetree; anything that can vary with time must be done during parse analysis.
-
- Dec 26, 2000
-
-
Peter Eisentraut authored
-
- Dec 20, 2000
-
-
Bruce Momjian authored
> We need additions to alter_table.sgml for the new OWNER option mention > in the features list. Here it is. -- Mark Hollomon
-
- Oct 05, 2000
-
-
Bruce Momjian authored
Fix misspelling of disbursion to dispersion.
-
- Jul 22, 2000
-
-
Bruce Momjian authored
-
- Jun 09, 2000
-
-
Bruce Momjian authored
-
- Apr 11, 2000
-
-
Bruce Momjian authored
forgotten in my mailbox (sorry). Haven't tried to apply and since I don't have working sgml stuff cannot check. Jan
-
- Mar 27, 2000
-
-
Thomas G. Lockhart authored
Use "generic functions" for math and other routines. Use SQL92 "type 'literal'" syntax rather than Postgres "'literal'::type".
-
- Jan 29, 2000
-
-
Peter Eisentraut authored
Initdb help correction Changed end/abort to commit/rollback and changed related notices Commented out way old printing functions in libpq Fixed a typo in alter table / alter column
-
- Jan 09, 2000
-
-
Bruce Momjian authored
traced this back to what I believe is an error in the sgml file used to generate this comment, found in pgsql/doc/src/sgml/ref/alter_table.sgml. Stephen Birch
-
- Jul 22, 1999
-
-
Thomas G. Lockhart authored
ecpg reference page still needs formatting.
-
- Jul 06, 1999
-
-
Thomas G. Lockhart authored
No big deal; fixed lots of other markup at the same time. Bigest change: make sure there is no whitespace in front of <term> contents. This will probably help the other output types too.
-
- Dec 29, 1998
-
-
Thomas G. Lockhart authored
of Norm's Modular Style Sheets and jade/docbook. From Vince Vielhaber <vev@michvhf.com>.
-