Bruce Momjian
1128c54a09
Fix "$@" to ${1:+"$@"} for older shells.
2002-07-19 13:50:06 +00:00
Tatsuo Ishii
86270024ff
Oops. Too much ifdef out.
2002-07-19 11:09:25 +00:00
Tatsuo Ishii
248cbb5796
Temporary ifdef out migrating functions to avoid compiler warnings.
2002-07-19 00:22:24 +00:00
Bruce Momjian
b75fcf9326
Complete TODO item:
...
* -HOLDER/HOLDERTAB rename to PROCLOCK/PROCLOCKTAG
2002-07-19 00:17:40 +00:00
Peter Eisentraut
97377048b4
pg_cast table, and standards-compliant CREATE/DROP CAST commands, plus
...
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-18 23:11:32 +00:00
Bruce Momjian
981d045e88
Complete TODO item:
...
* Merge LockMethodCtl and LockMethodTable into one shared structure (Bruce)
2002-07-18 23:06:20 +00:00
Peter Eisentraut
85d2a629c6
Create directory before installing files.
2002-07-18 22:58:08 +00:00
Bruce Momjian
776fc8cc5c
New depend code doesn't need sequence drop.
2002-07-18 22:31:44 +00:00
Tom Lane
2aa6a5de87
Sic transit src/utils.
2002-07-18 22:15:10 +00:00
Bruce Momjian
7d78bac108
Back out BETWEEN node patch, was causing initdb failure.
2002-07-18 17:14:20 +00:00
Bruce Momjian
a938f32a5a
New depend code auto-drops sequence, fix copy2.out.
2002-07-18 17:11:49 +00:00
Tom Lane
11333426f1
Implement DROP SCHEMA. It lacks support for dropping conversions and
...
operator classes, both of which are schema-local and so should really
be droppable.
2002-07-18 16:47:26 +00:00
Tatsuo Ishii
55fa0e6d2a
Fix typo (PG_UNICODE -> PG_UTF8)
2002-07-18 05:07:30 +00:00
Bruce Momjian
a9f6c5b5c7
Unique and primary key constraints are both dumped using ALTER TABLE
...
statements. Unique indexes with CREATE INDEX.
Basically, pg_constraint left outer'd to pg_index.
Rod Taylor
2002-07-18 04:50:51 +00:00
Bruce Momjian
e6f02c8231
REVOKE ALL ON FUNCTION nonexistant() FROM PUBLIC;
...
Used to report that GRANT could not find function nonexistant.
Rod Taylor
2002-07-18 04:50:10 +00:00
Bruce Momjian
8f211f8a84
Fix for PgTransaction class to make these visible to C apps:
...
ExecStatusType BeginTransaction();
ExecStatusType EndTransaction();
Piotr Klaban
2002-07-18 04:49:30 +00:00
Bruce Momjian
8c26bc5364
The attached patch fixes a tiny memory leak in psql, when using
...
the 'expanded' output mode (\x).
Neil Conway
2002-07-18 04:46:24 +00:00
Bruce Momjian
2c48b3db95
here are the copy2.sql and copy2.out files for the new regression
...
tests
Brent Verner
2002-07-18 04:45:51 +00:00
Bruce Momjian
a90db34b54
The attached patch (against HEAD) implements
...
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-18 04:43:51 +00:00
Bruce Momjian
fc5372e099
You made a tiny little type in a comment in parsenodes.h (abotu instead
...
of about).
Christopher Kings-Lynne
2002-07-18 04:42:29 +00:00
Bruce Momjian
3e22406ec6
Finished the Between patch Christopher started.
...
Implements between (symmetric / asymmetric) as a node.
Executes the left or right expression once, makes a Const out of the
resulting Datum and executes the >=, <= portions out of the Const sets.
Of course, the parser does a fair amount of preparatory work for this to
happen.
Rod Taylor
2002-07-18 04:41:46 +00:00
Bruce Momjian
7ea5f1d7f1
Here is a patch for the Table Function API. It fixes a bug found by Neil
...
Conway (BuildTupleFromCStrings sets NULL for pass-by-value types when
intended value is 0). It also implements some other improvements
suggested by Neil.
Joe Conway
2002-07-18 04:40:30 +00:00
Bruce Momjian
7c5c1a2adb
Add comment to file about port files.
2002-07-18 04:30:36 +00:00
Tatsuo Ishii
3d7a9ac769
Fix breakage for pltcl modules. pg_get_enconv_by_encoding() has been
...
changed since CREATE CONVERSION supported.
2002-07-18 04:16:07 +00:00
Bruce Momjian
404e9a12a5
Move libc replacement files from src/backend/port to src/port.
2002-07-18 04:13:59 +00:00
Bruce Momjian
7f43165dd2
Make src/backend/port/*.c file location dependent only on configure.in.
2002-07-18 03:59:49 +00:00
Tatsuo Ishii
eb335a034b
I have committed many support files for CREATE CONVERSION. Default
...
conversion procs and conversions are added in initdb. Currently
supported conversions are:
UTF-8(UNICODE) <--> SQL_ASCII, ISO-8859-1 to 16, EUC_JP, EUC_KR,
EUC_CN, EUC_TW, SJIS, BIG5, GBK, GB18030, UHC,
JOHAB, TCVN
EUC_JP <--> SJIS
EUC_TW <--> BIG5
MULE_INTERNAL <--> EUC_JP, SJIS, EUC_TW, BIG5
Note that initial contents of pg_conversion system catalog are created
in the initdb process. So doing initdb required is ideal, it's
possible to add them to your databases by hand, however. To accomplish
this:
psql -f your_postgresql_install_path/share/conversion_create.sql your_database
So I did not bump up the version in cataversion.h.
TODO:
Add more conversion procs
Add [CASCADE|RESTRICT] to DROP CONVERSION
Add tuples to pg_depend
Add regression tests
Write docs
Add SQL99 CONVERT command?
--
Tatsuo Ishii
2002-07-18 02:02:30 +00:00
Tom Lane
5af19e4227
Add more dependency insertions --- this completes the basic pg_depend
...
functionality. Of note: dropping a table that has a SERIAL column
defined now drops the associated sequence automatically.
2002-07-16 22:12:20 +00:00
Barry Lind
cdebcad6af
fixed bug in support for timestamp without time zone reported by Yuva Chandolu (ychandolu@ebates.com)
2002-07-16 21:05:17 +00:00
Bruce Momjian
846ea08d34
Oops, sometimes strtol isn't called in pg_atoi, so we do need that badp
...
check.
2002-07-16 18:34:16 +00:00
Bruce Momjian
7aee5ed3b7
Fix tid to in/out as unsigned.
2002-07-16 17:55:25 +00:00
Tom Lane
14f1588356
Add initdb code to set up initial contents of pg_depend, pinning all
...
objects created during initdb (except for the system views, which I
think do not need to be pinned).
2002-07-16 17:48:46 +00:00
Tatsuo Ishii
3c7798f068
Add conversion procs for CREATE CONVERSION
2002-07-16 09:25:06 +00:00
Tatsuo Ishii
743b747264
Fix typo
2002-07-16 06:58:44 +00:00
Tatsuo Ishii
d49108fd73
Add FindDefaultConversionProc
2002-07-16 06:58:14 +00:00
Tom Lane
30ec31604d
Add code to extract dependencies from an expression tree, and use it
...
to build dependencies for rules, constraint expressions, and default
expressions. Repair some problems in the original design of
recursiveDeletion() exposed by more complex dependency sets. Fix
regression tests that were deleting things in illegal sequences.
2002-07-16 05:53:34 +00:00
Bruce Momjian
1e07ab78cc
Add DLLINIT mention in port/Makefile.
2002-07-16 05:49:38 +00:00
Bruce Momjian
3cbb9eb265
Move few remaining src/utils files to backend/port so everything is in
...
one place. Everything may be moved to src/utils eventually.
Add DLLINIT variable to simplify makfiles.
2002-07-16 05:46:36 +00:00
Bruce Momjian
b3341ddbf2
Mark 'line' as 'not implemented' in SGML and psql \dT, per Thomas
...
Lockhart. initdb not forced.
2002-07-16 03:30:27 +00:00
Bruce Momjian
b00e50fbb8
Remove indenting of Makefile comments, per Peter.\
2002-07-15 23:32:28 +00:00
Bruce Momjian
4ea0275f18
Remove utils/getopt.c file, not needed, it only allowed "--flag"
...
warnings, and we now look for getopt_long in libgetopt.a.
2002-07-15 22:48:54 +00:00
Bruce Momjian
b9104e3a97
Remove certain Makefile dependencies by using full pathnames in
...
configure.in.
2002-07-15 21:34:05 +00:00
Tom Lane
7bd631bfa4
Use the dependency mechanism to manage column defaults. We need this
...
so that dependencies in default expressions (on operators, functions,
etc) can be expressed properly.
2002-07-15 16:33:32 +00:00
Bruce Momjian
3c580b8d97
Fix make_ctags for exhuberant tags.
2002-07-15 14:45:51 +00:00
Hiroshi Inoue
5fad748eb8
Fix a bug about the handling of '.' in parse.c.
2002-07-15 02:56:39 +00:00
Bruce Momjian
e552e9e512
Improve relcache.c error reporting for the next guy who has to debug
...
this thing.
2002-07-15 01:57:51 +00:00
Bruce Momjian
91dfa1af97
Fix \? and \pset pager handling. \? wasn't honoring pager before.
2002-07-15 01:56:25 +00:00
Tom Lane
d5fa19c6ee
Add COMMENT ON CONSTRAINT facility (from Rod Taylor's pg_constraint patch).
...
Fix comment.c to not depend on parser token values, per discussion awhile
back.
2002-07-14 23:38:13 +00:00
Tom Lane
df3f5dfd19
In DeleteAttributeTuples, use a single indexscan instead of the multiple
...
scans that will most likely be caused by SearchSysCache probes. Also,
share some code between index deletion and table deletion.
2002-07-14 21:08:08 +00:00
Tom Lane
942a2e94fa
Fix testing of partial-index predicates to work correctly in cases where
...
varno of index's relation is not 1. This embarrassing oversight pointed
out by Dmitry Tkach 12-Jul-02.
2002-07-13 19:20:34 +00:00