Commit Graph

2108 Commits

Author SHA1 Message Date
Peter Eisentraut 6a68f42648 The heralded `Grand Unified Configuration scheme' (GUC)
That means you can now set your options in either or all of $PGDATA/configuration,
some postmaster option (--enable-fsync=off), or set a SET command. The list of
options is in backend/utils/misc/guc.c, documentation will be written post haste.

pg_options is gone, so is that pq_geqo config file. Also removed were backend -K,
-Q, and -T options (no longer applicable, although -d0 does the same as -Q).

Added to configure an --enable-syslog option.

changed all callers from TPRINTF to elog(DEBUG)
2000-05-31 00:28:42 +00:00
Bruce Momjian 35096b568e Split vacuum and analyze into separate files 2000-05-29 17:40:45 +00:00
Bruce Momjian 398bb1fcb6 Update pgindent 2000-04-12 01:01:49 +00:00
Bruce Momjian 83a57694d1 Update pgindent 2000-04-11 22:15:08 +00:00
Bruce Momjian 862d677682 Update pgindent for 7.0 release 2000-04-11 19:09:04 +00:00
Bruce Momjian be1d9fea15 Update make_mkid for mkid version 4.0. 2000-03-31 01:41:27 +00:00
Bruce Momjian b508136d81 Update HISTORY file for 7.0. 2000-03-23 06:30:58 +00:00
Tom Lane 64ef5c82de Typo correction (// -> /) 2000-03-17 23:17:23 +00:00
Bruce Momjian f40c50627f Fix plpsql for bsdi. 2000-02-23 22:24:46 +00:00
Bruce Momjian 020be62dea Well, here's the first pass on regression
tests for the Foreign Key support in 7.0 which
was made against a CVS copy from this
afternoon.

This modifies
 src/test/regress/sql/run_check.tests
 src/test/regress/sql/alter_table.sql
 src/test/regress/expected/alter_table.out
 src/test/regress/sql/foreign_key.sql
 src/test/regress/expected/foreign_key.out

sszabo@bigpanda.co
2000-02-22 20:58:31 +00:00
Bruce Momjian 25fdc6bac6 Add no CVS to make_mkid. 2000-02-10 18:41:35 +00:00
Bruce Momjian ecef31ca61 Prevent tags files in cvs directory. 2000-02-10 18:34:26 +00:00
Tom Lane fb0627d972 Correct minor typos. 2000-01-17 04:47:05 +00:00
Peter Eisentraut 759fba4873 Included all yacc and lex files into the distribution. 2000-01-16 20:05:00 +00:00
Bruce Momjian 3f03f74f36 Update int28out and out8out and _in_ functions to handle trailing zeros
properly.
2000-01-10 15:41:34 +00:00
Bruce Momjian 662371cc5d Prevent _deadcode from showing in ctags and mkid 1999-12-13 04:54:01 +00:00
Bruce Momjian db12a63ef1 The \p\g fix didn't turn out to be so bad. It even works in other
circumstances:
=> select * from foo\x\t\pset border 0 \p\g\\select * from bar;

Also the release prep update so the sql_help.h is generated before
packaging.

Peter.
1999-11-13 02:04:54 +00:00
Bruce Momjian 7acc237744 This patch implements ORACLE's COMMENT SQL command.
>From the ORACLE 7 SQL Language Reference Manual:
-----------------------------------------------------
COMMENT

Purpose:

To add a comment about a table, view, snapshot, or
column into the data dictionary.

Prerequisites:

The table, view, or snapshot must be in your own
schema
or you must have COMMENT ANY TABLE system privilege.

Syntax:

COMMENT ON [ TABLE table ] |
           [ COLUMN table.column] IS 'text'

You can effectively drop a comment from the database
by setting it to the empty string ''.
-----------------------------------------------------

Example:

COMMENT ON TABLE workorders IS
   'Maintains base records for workorder information';

COMMENT ON COLUMN workorders.hours IS
   'Number of hours the engineer worked on the task';

to drop a comment:

COMMENT ON COLUMN workorders.hours IS '';

The current patch will simply perform the insert into
pg_description, as per the TODO. And, of course, when
the table is dropped, any comments relating to it
or any of its attributes are also dropped. I haven't
looked at the ODBC source yet, but I do know from
an ODBC client standpoint that the standard does
support the notion of table and column comments.
Hopefully the ODBC driver is already fetching these
values from pg_description, but if not, it should be
trivial.

Hope this makes the grade,

Mike Mascari
(mascarim@yahoo.com)
1999-10-15 01:49:49 +00:00
Bruce Momjian 8ce829ea6a Update jdbc for release version #> 1999-10-13 11:08:57 +00:00
Bruce Momjian 008f354af4 Add mention of pg_upgrade for release checklist. 1999-09-28 18:08:29 +00:00
Bruce Momjian 9394d62c73 I have been working with user defined types and user defined c
functions.  One problem that I have encountered with the function
manager is that it does not allow the user to define type conversion
functions that convert between user types. For instance if mytype1,
mytype2, and mytype3 are three Postgresql user types, and if I wish to
define Postgresql conversion functions like

I run into problems, because the Postgresql dynamic loader would look
for a single link symbol, mytype3, for both pieces of object code.  If
I just change the name of one of the Postgresql functions (to make the
symbols distinct), the automatic type conversion that Postgresql uses,
for example, when matching operators to arguments no longer finds the
type conversion function.

The solution that I propose, and have implemented in the attatched
patch extends the CREATE FUNCTION syntax as follows. In the first case
above I use the link symbol mytype2_to_mytype3 for the link object
that implements the first conversion function, and define the
Postgresql operator with the following syntax

The patch includes changes to the parser to include the altered
syntax, changes to the ProcedureStmt node in nodes/parsenodes.h,
changes to commands/define.c to handle the extra information in the AS
clause, and changes to utils/fmgr/dfmgr.c that alter the way that the
dynamic loader figures out what link symbol to use.  I store the
string for the link symbol in the prosrc text attribute of the pg_proc
table which is currently unused in rows that reference dynamically
loaded
functions.


Bernie Frankpitt
1999-09-28 04:34:56 +00:00
Bruce Momjian 63a85082e3 Reverse out last scan.l patch for minus handling.\ 1999-09-28 03:41:40 +00:00
Bruce Momjian e7cad7b0cb Add TRUNCATE command, with psql help and sgml additions. 1999-09-23 17:03:39 +00:00
Bruce Momjian c1d5e88b41 Make pgindent gnu test better. 1999-09-09 19:39:06 +00:00
Bruce Momjian 0e264fb464 Add c.h to exclusion list. 1999-07-17 15:37:30 +00:00
Bruce Momjian fbe4ad2154 Add config.h as needed. 1999-07-17 04:00:31 +00:00
Bruce Momjian 9679cb3910 More cleanup 1999-07-16 17:46:32 +00:00
Bruce Momjian 773088809d More cleanup 1999-07-16 17:07:40 +00:00
Bruce Momjian 2e6b1e63a3 Remove unused #includes in *.c files. 1999-07-15 22:40:16 +00:00
Bruce Momjian 40a89e08b2 Cleanups. 1999-07-15 20:32:30 +00:00
Bruce Momjian fb38a5d8cf Remove un-needed #include's from *.c files. 1999-07-15 19:21:43 +00:00
Bruce Momjian 353eb3dadf Add updates. 1999-07-15 16:55:32 +00:00
Bruce Momjian 4b2c2850bf Clean up #include in /include directory. Add scripts for checking includes. 1999-07-15 15:21:54 +00:00
Bruce Momjian 5a3fa95c39 Update stuff for 6.5.1 release. 1999-07-10 16:28:02 +00:00
Bruce Momjian 9c56b408c4 Add fix for 0x7fU constants to pgindent 1999-05-26 15:20:04 +00:00
Bruce Momjian fcff1cdf4e Another pgindent run. Sorry folks. 1999-05-25 22:43:53 +00:00
Bruce Momjian 07842084fe pgindent run over code. 1999-05-25 16:15:34 +00:00
Tom Lane c96add9a08 Script for preparing derived files during tarball construction. 1999-03-20 17:53:54 +00:00
Bruce Momjian d5a785cd5a Update find_typedefs for bsdi 4.0. 1999-02-10 17:14:32 +00:00
Bruce Momjian 4390b0bfbe Add TEMP tables/indexes. Add COPY pfree(). Other cleanups. 1999-02-02 03:45:56 +00:00
Bruce Momjian 7a6b562fdf Apply Win32 patch from Horak Daniel. 1999-01-17 06:20:06 +00:00
Bruce Momjian 2be1eccec7 Fix for version, update to 6.5. 1998-12-25 02:20:12 +00:00
Bruce Momjian 5afe8d3478 Add subversion mention 1998-12-23 14:35:42 +00:00
Bruce Momjian 8849655d24 I agree. I think, though, that the best argument presented in the
debate was from Paul Vixie, who wanted INET to be the name covering
both IPV4 and IPV6.  The following kit makes the needed changes:

Tom Ivar Helbekkmo
1998-10-08 00:19:47 +00:00
Thomas G. Lockhart 445ce6954f Information is now in the chapter on syntax in the User's Guide. 1998-10-05 02:55:58 +00:00
Bruce Momjian 2d69fd90b9 Integrate new IP type from Tom Ivar Helbekkmo. 1998-10-03 05:41:01 +00:00
Bruce Momjian f1ab71ec5f The attached patches fix the following problems:
1.  The UnixWare tas macro was reformatted (by indent or it like?) which caused
    it to break.  The asm macro construct is very particular about the %mem
    construct -- it has to start in column 1.

2.  When compiling libpq++, g++ was used even if configure found the C++ com-
    piler to be CC.

3.  When compiling libpq++, '-Wno-error' was added to CXXFLAGS, even if the
    compiler wasn't g++.

Billy G. Allie
1998-09-11 16:56:24 +00:00
Bruce Momjian d9d8169858 Fix for length in libpq from Tom Lane. 1998-09-10 15:18:06 +00:00
Bruce Momjian fa1a8d6a97 OK, folks, here is the pgindent output. 1998-09-01 04:40:42 +00:00
Bruce Momjian 690235fcdd Update INSTALL, etc. for release 6.4. Update pgaccess to 0.88. 1998-08-30 01:40:52 +00:00
Bruce Momjian c9ac0ceb61 Update of changes 1998-08-30 00:17:42 +00:00
Bruce Momjian 9a88848027 update libpq.rc version. 1998-08-29 04:07:08 +00:00
Bruce Momjian 3e87302201 libpq's pqGetnchar() should not return a null-terminated value
anymore.  Fix for large objects.
1998-08-29 02:09:27 +00:00
Bruce Momjian 7971539020 heap_fetch requires buffer pointer, must be released; heap_getnext
no longer returns buffer pointer, can be gotten from scan;
	descriptor; bootstrap can create multi-key indexes;
pg_procname index now is multi-key index; oidint2, oidint4, oidname
are gone (must be removed from regression tests); use System Cache
rather than sequential scan in many places; heap_modifytuple no
longer takes buffer parameter; remove unused buffer parameter in
a few other functions; oid8 is not index-able; remove some use of
single-character variable names; cleanup Buffer variables usage
and scan descriptor looping; cleaned up allocation and freeing of
tuples; 18k lines of diff;
1998-08-19 02:04:17 +00:00
Bruce Momjian ffb120ecc6 Add new \w write command to psql. 1998-08-10 20:31:42 +00:00
Bruce Momjian 5e490118f8 Update flowchart. 1998-08-10 14:39:45 +00:00
Bruce Momjian 2d13c5f1e2 Update flowchart. 1998-08-10 14:32:46 +00:00
Bruce Momjian addddea313 Update pgindent. 1998-08-09 17:57:31 +00:00
Bruce Momjian a08dc16c47 New pgindent. 1998-08-09 04:59:10 +00:00
Bruce Momjian e46df2ff6e OPTIMIZER_DEBUG additions. 1998-08-07 05:02:32 +00:00
Bruce Momjian af5fde7491 Make large objects their own relkind type. Fix dups in pg_class_mb
files.  Fix sequence creation hack for relkind type.
1998-08-06 05:13:14 +00:00
Bruce Momjian 8962ec4bc4 flowchart update 1998-08-05 19:14:23 +00:00
Bruce Momjian 4f4953152d flowchart update 1998-08-05 19:01:58 +00:00
Bruce Momjian c8b42a6151 Update flow chart. 1998-08-04 00:42:14 +00:00
Bruce Momjian 439a2af0bc Update mark/reset index code for multiple indexes, (OR code).
Thanks for Vadim for fixes.
1998-08-03 19:41:35 +00:00
Bruce Momjian b88e9784b6 Cleanup of OR processing. 1998-08-03 05:49:24 +00:00
Bruce Momjian e05aa52a55 Update flowchart. Add arrow. 1998-07-26 02:17:55 +00:00
Bruce Momjian 128d827d4b I'm sorry, but I think I introduced a little bug with my last patch.
Everyone using an [NOT] EXISTS subquery will have noticed that
already.

The bug is in "subselect.c" in the function "SS_process_sublinks()".

Here the whole function as it *SHOULD BE*:

Stephan
1998-07-24 04:03:10 +00:00
Bruce Momjian 224a62c5b7 Update. 1998-07-21 04:48:31 +00:00
Bruce Momjian 7f61f8a71f Update. 1998-07-21 04:19:44 +00:00
Bruce Momjian a6ca652508 Update version. 1998-07-20 10:01:51 +00:00
Bruce Momjian 3a132e9d83 update 1998-07-17 18:19:31 +00:00
Bruce Momjian da9db56930 change <CODE> to <I>. 1998-07-09 17:59:49 +00:00
Bruce Momjian b992bb457d update 1998-07-09 15:45:00 +00:00
Bruce Momjian f8a4746208 Patches HPUX applied for Tom Lane. 1998-07-06 20:28:09 +00:00
Bruce Momjian 05f9966183 Update layout 1998-07-03 19:30:40 +00:00
Bruce Momjian 3909e4d23a Update flow chart 1998-07-03 19:17:22 +00:00
Bruce Momjian 34d595729a update 1998-06-30 04:35:34 +00:00
Bruce Momjian 2584029e31 Rename locking structure names to be clearer. Add narrative to
backend flowchart.
1998-06-30 02:33:34 +00:00
Bruce Momjian cff7e20467 update 1998-06-28 18:59:26 +00:00
Bruce Momjian b15e7df8c9 backend update. 1998-06-28 16:35:41 +00:00
Bruce Momjian 8986e609ab Update flowchart and backend descriptions. 1998-06-28 15:00:28 +00:00
Bruce Momjian 0cba552301 Update backend flowchart. 1998-06-28 06:17:14 +00:00
Bruce Momjian 6e771e8dc2 Add files to be updated for release. 1998-06-16 17:04:31 +00:00
Bruce Momjian 56bdbe1f4c Add remove extra braces code to pgindent. 1998-06-15 20:45:57 +00:00
Bruce Momjian 9af6bd9962 Move FAQ_DEV to docs directory, where it belongs. 1998-05-22 04:20:53 +00:00
Bruce Momjian dfb731c273 test 1998-05-01 04:33:58 +00:00
Bruce Momjian c6e484a453 test 1998-05-01 04:31:02 +00:00
Bruce Momjian fc1000f9bb test 1998-05-01 04:28:03 +00:00
Bruce Momjian 745c642597 test 1998-05-01 04:26:52 +00:00
Bruce Momjian 08aa9d304b test 1998-05-01 04:22:24 +00:00
Bruce Momjian f97b679c82 test 1998-05-01 04:19:55 +00:00
Bruce Momjian 0540a19f12 test 1998-05-01 04:18:15 +00:00
Bruce Momjian 404c73bff9 test 1998-05-01 04:15:50 +00:00
Bruce Momjian a20df83df9 test 1998-04-30 14:54:27 +00:00
Bruce Momjian 23c0471007 test 1998-04-29 01:47:40 +00:00
Bruce Momjian ced3333594 test 1998-04-29 01:29:31 +00:00
Bruce Momjian fcfd60fe73 test 1998-04-29 01:21:08 +00:00
Bruce Momjian c1c5b39728 test 1998-04-29 00:56:13 +00:00
Bruce Momjian e8cfd4376d test 1998-04-29 00:28:56 +00:00
Bruce Momjian 4ec54e7aee test 1998-04-29 00:25:42 +00:00
Bruce Momjian 7a6111ee4b test 1998-04-29 00:24:30 +00:00
Bruce Momjian ba77aa5249 test 1998-04-29 00:13:10 +00:00
Bruce Momjian 227bbcc603 test 1998-04-29 00:10:35 +00:00
Bruce Momjian c2cc963d18 test 1998-04-28 21:51:34 +00:00
Bruce Momjian 8a9b784bfa test 1998-04-28 19:50:22 +00:00
Bruce Momjian 89f534e049 test 1998-04-28 19:24:08 +00:00
Bruce Momjian 62eb0e17dc test 1998-04-28 19:20:22 +00:00
Bruce Momjian a987f54955 test 1998-04-28 18:59:46 +00:00
Bruce Momjian 0d203b745d Re-apply Darren's char2-16 removal code. 1998-04-26 04:12:15 +00:00
Bruce Momjian 27c490bed0 Update gram.c scan.c. 1998-04-14 01:52:47 +00:00
Bruce Momjian 66feaefa98 New book to FAQ. 1998-04-12 14:17:40 +00:00
Bruce Momjian db21523314 Back out char2-char16 removal. Add later. 1998-04-07 18:14:38 +00:00
Bruce Momjian 57b5966405 The following uuencoded, gzip'd file will ...
1. Remove the char2, char4, char8 and char16 types from postgresql
2. Change references of char16 to name in the regression tests.
3. Rename the char16.sql regression test to name.sql.  4. Modify
the regression test scripts and outputs to match up.

Might require new regression.{SYSTEM} files...

Darren King
1998-03-30 17:28:21 +00:00
Bruce Momjian 748fab8d5d Prevent pgindent from being run on odbc in the future. 1998-03-28 02:24:49 +00:00
Bruce Momjian f74f2d39d8 update for 6.3.1 1998-03-23 16:14:50 +00:00
Marc G. Fournier d30ad52918 From: Jeroen van Vianen <jeroenv@design.nl>
tools.patch patches tools/find_static (use indices to increase
performance) and tools/ccsym (no hardcoded paths).
1998-03-15 08:33:59 +00:00
Bruce Momjian d45dfd0d65 Reminder for next time. 1998-03-02 05:52:57 +00:00
Bruce Momjian d067f83b27 pgindent changes for Thomas proc/lock cleanup 1998-02-25 00:31:23 +00:00
Bruce Momjian fe521fbe76 Update FAQ's for release. 1998-02-18 15:56:06 +00:00
Bruce Momjian f57cfa5e4d Html backend_dir cleanup 1998-01-12 14:41:38 +00:00
Bruce Momjian 6cfa6cb95e Fix CLUSTER. 1998-01-10 05:19:22 +00:00
Bruce Momjian 1b9ab297f3 Change web page directions. 1998-01-07 03:48:29 +00:00
Bruce Momjian bbd5c21786 Make no-tty not use quiet in psql, fix group by copy failure, fix ccsym to delete tmp files. 1997-12-23 21:38:53 +00:00
Bruce Momjian 2f4ccfe053 Make flowchart file smaller. 1997-11-14 22:00:32 +00:00
Bruce Momjian 4cbc06cff1 Add new psql \da, \do, and \dT options. 1997-11-14 21:38:25 +00:00
Bruce Momjian fcb47f8884 Remember release.txt change. 1997-10-30 22:37:28 +00:00
Bruce Momjian 97b1bb2281 New backend_dir html source. 1997-10-29 23:48:18 +00:00
Bruce Momjian ee08c36dd3 New backend dirs html file. 1997-10-27 17:53:38 +00:00
Bruce Momjian 8cae12b13b Add new html development tools, and flow chart. 1997-10-27 16:59:20 +00:00
Bruce Momjian 8a1a39c390 Update for 6.2.1 1997-10-18 16:59:06 +00:00
Bruce Momjian a805635d21 Cleanups for 6.2.1. 1997-10-16 04:14:30 +00:00
Bruce Momjian 1d3290e7ff Fix permits. 1997-09-30 18:40:37 +00:00
Bruce Momjian a638f6625b Cleanup tmp files for ccsym. 1997-09-28 16:57:44 +00:00
Bruce Momjian 9cd2680f93 ccsym cleanup. 1997-09-28 04:23:04 +00:00
Bruce Momjian 16440d79bb Cleanup for find_keywords. 1997-09-27 17:25:48 +00:00
Bruce Momjian 87251d17f8 Cleanup for find_keywords. 1997-09-27 17:22:05 +00:00
Bruce Momjian 65b1ed4712 Add fiel to list keywords. 1997-09-27 16:42:21 +00:00
Marc G. Fournier 802fc5f770 This gets things to compile...past this I'll have to test from home, or
someone will have to tell me
1997-09-27 00:05:23 +00:00
Marc G. Fournier 1fdd834672 Nothing in this file right now, but will contain appropriate 'chmod's
so that permissions are set for the end release...
1997-09-26 22:06:30 +00:00
Marc G. Fournier ba0b03de2e Let's hope this fixes the "bug" that was introduced 1997-09-13 16:27:13 +00:00
Bruce Momjian d88ff48045 Added pgindent/README file. 1997-09-13 11:55:12 +00:00
Bruce Momjian c853ca05a4 Update pgpatch for GNU. 1997-09-11 21:29:11 +00:00
Bruce Momjian c8bc4a4e63 Add new pgindent directory and diff file. 1997-09-11 17:22:35 +00:00
Bruce Momjian 59f6a57e59 Used modified version of indent that understands over 100 typedefs. 1997-09-08 21:56:23 +00:00
Bruce Momjian 108baf70e5 Developer reorganization. 1997-09-08 04:19:50 +00:00
Bruce Momjian 125079e6d7 Reorganize developers files. 1997-09-08 04:14:01 +00:00
Bruce Momjian 319dbfa736 Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting. 1997-09-08 02:41:22 +00:00
Bruce Momjian 1ccd423235 Massive commit to run PGINDENT on all *.c and *.h files. 1997-09-07 05:04:48 +00:00
Bruce Momjian 5d68d3e957 New entab version. 1997-09-06 03:14:38 +00:00
Bruce Momjian b71fba22e3 New entab version. 1997-09-06 02:46:43 +00:00
Bruce Momjian 723f66076e Update entab version. 1997-09-06 01:46:25 +00:00
Bruce Momjian 2718f3097f Fix for entab. 1997-09-06 01:37:01 +00:00
Bruce Momjian 0aea0f2063 Cleanup. 1997-08-29 21:20:09 +00:00
Bruce Momjian fddc57bfcd Add PGINDENT and support program. 1997-08-29 21:13:00 +00:00
Marc G. Fournier a69c5fc81a Add ccsym to tools to determine OS/compiler specific symbols
Change BSD44_derived to __FreeBSD__ in numutils.c (need to know what
NetBSD is referred to as...someone?)
1997-04-13 17:09:45 +00:00
Bryan Henderson d7dd9295b7 End of the make file simplifications. 1996-11-12 11:43:32 +00:00
Marc G. Fournier d31084e9d1 Postgres95 1.01 Distribution - Virgin Sources 1996-07-09 06:22:35 +00:00