Bruce Momjian
4a5b781d71
Break parser functions into smaller files, group together.
1997-11-25 22:07:18 +00:00
Bruce Momjian
49656346b8
Move dbcommands.c to commands/. It should not be in the parser directory.
1997-11-24 05:32:56 +00:00
Bruce Momjian
36e3df0767
Move dbcommands.c to commands/. It should not be in the parser directory.
1997-11-24 05:21:03 +00:00
Bruce Momjian
f4253b0b49
Archive cleanups.
1997-11-21 19:59:39 +00:00
Bruce Momjian
629e27284d
Remove unused files.
1997-11-21 18:22:04 +00:00
Bruce Momjian
3fa2bb316c
Remove archive stuff.
1997-11-21 18:12:58 +00:00
Bruce Momjian
0889dcd6f7
Remove archive stuff.
1997-11-21 18:04:26 +00:00
Bruce Momjian
e9e1ff226f
Remove all time travel stuff. Small parser cleanup.
1997-11-20 23:24:03 +00:00
Bruce Momjian
d0471244e6
Remove 16 char limit on system table/index names. Rename system indexes.
1997-11-17 16:59:36 +00:00
Bruce Momjian
5aaf00f3f3
Remove NOT_USED for Massimo.
1997-11-05 21:18:59 +00:00
Vadim B. Mikheev
32cd09ac6d
Good Bye, Time Travel!
1997-11-02 15:27:14 +00:00
Bruce Momjian
e2617c856e
Fix for compile warning, from Ernst Molitor.
1997-10-30 05:07:58 +00:00
Vadim B. Mikheev
7bff4c5078
Now we are able to CREATE PROCEDURAL LANGUAGE (Thanks, Jan).
1997-10-28 15:11:45 +00:00
Vadim B. Mikheev
110ba08a12
Fix binary cursors broken by MOVE implementation.
...
(Thanks to Bruce for finding what caused problem).
1997-10-27 08:55:16 +00:00
Bruce Momjian
f3af1368bd
Rename strNcpy to StrNCpy, and change third parameter.
1997-10-25 01:10:58 +00:00
Vadim B. Mikheev
1b677e7e34
Fix \ handling
1997-10-02 13:52:29 +00:00
Vadim B. Mikheev
7a5d3fbd9b
STATEMENT triggers are not implemented - elog (WARN).
1997-09-30 09:49:54 +00:00
Vadim B. Mikheev
5a447b4a26
MOVE implementation.
1997-09-29 05:59:16 +00:00
Vadim B. Mikheev
708f67c7a9
Blowaway relation buffers from buffer pool before truncation.
1997-09-22 07:12:33 +00:00
Thomas G. Lockhart
eba607d8e5
Fix up elog warning messages.
1997-09-20 16:14:05 +00:00
Bruce Momjian
3f365ba0fc
Inline memset() as MemSet().
1997-09-18 20:22:58 +00:00
Vadim B. Mikheev
2de0da358d
ALTER TABLE ADD COLUMN: set atthasdef to FALSE.
1997-09-18 14:31:38 +00:00
Bruce Momjian
8cb4154492
Inline frequently called functions.
1997-09-18 14:21:02 +00:00
Bruce Momjian
1ea01720d5
heapattr functions now return a Datum, not char *.
1997-09-12 04:09:08 +00:00
Vadim B. Mikheev
a74613f478
Cleanups.
1997-09-11 07:24:37 +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
075cede748
Add typdefs to pgindent run.
1997-09-08 20:59:27 +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
Vadim B. Mikheev
dc13d5d307
Before row insertion triggers call.
1997-09-04 13:19:01 +00:00
Vadim B. Mikheev
8c798538b8
BEFORE/AFTER ROW INSERT triggers startup from CopyFrom()
...
RelationBuildTriggers() & FreeTriggerDesc() in trigger.c
1997-09-01 07:59:06 +00:00
Vadim B. Mikheev
4e9a3f4ef0
Workplace for CREATE/DROP TRIGGER
1997-08-31 11:40:13 +00:00
Vadim B. Mikheev
faebf2f8a2
Turn constraints off for sequences & views
...
elog(WARN,"ADD ATTRIBUTE: DEFAULT is not implemented, yet");
Call ExecConstraints in CopyFrom
1997-08-22 14:22:14 +00:00
Bruce Momjian
7515bb484e
Fix for psql pager when no tty, cleanup for vacuum attdisbursion type.
1997-08-22 04:13:18 +00:00
Vadim B. Mikheev
b5b3e03e34
DefineRelation: DEFAULT/CHECK handling
1997-08-22 03:03:56 +00:00
Vadim B. Mikheev
cc332d612b
AttrConstr --> TupleConstr
1997-08-21 04:10:25 +00:00
Bruce Momjian
e482462960
Rename pg_attribute.attnvals to attdisbursion.
1997-08-21 03:02:13 +00:00
Bruce Momjian
f1edf02cc1
Change pg_attribute.attnvals to float4, change #ifdef 0 to #if 0, fix aix call to strNcpy, fix pg_super_user_id in pg_dumpall, change pg_database.dtadba from oid to int4.
1997-08-21 02:28:55 +00:00
Vadim B. Mikheev
e4247023f1
Get rid of attproc, atttyparg, attcanindex, attdefrel, attbound
...
from pg_attribute. atthasdef added.
1997-08-21 01:32:19 +00:00
Bruce Momjian
1d8bbfd2e7
Make functions static where possible, enclose unused functions in #ifdef NOT_USED.
1997-08-19 21:40:56 +00:00
Vadim B. Mikheev
b992e200b8
NOT NULL implementation (submitted by Robson Paniago de Miranda).
1997-08-19 04:46:15 +00:00
Bruce Momjian
b99c63cfc0
Now that names are null terminated, no need to do all that NAMEDATALEN stuff.
1997-08-18 20:53:48 +00:00
Bruce Momjian
022903f22e
Reduce open() calls. Replace fopen() calls with calls to fd.c functions.
1997-08-18 02:15:04 +00:00
Bruce Momjian
ea5b5357cd
Remove more (void) and fix -Wall warnings.
1997-08-12 22:55:25 +00:00
Bruce Momjian
edb58721b8
Fix pgproc names over 15 chars in output. Add strNcpy() function. remove some (void) casts that are unnecessary.
1997-08-12 20:16:25 +00:00
Bruce Momjian
6ed1715b1f
Cleanup for NAMEDATALEN use.
1997-08-03 02:38:47 +00:00
Bruce Momjian
8015ba0836
Prevent relname unallocated string length from being copied into database.
1997-08-02 19:09:33 +00:00
Thomas G. Lockhart
840ea2497d
Change call definition for isreltime().
1997-07-29 16:19:26 +00:00
Bruce Momjian
79e78f0b80
Added SCO support, from Daniel Harris.
1997-07-28 00:57:08 +00:00
Vadim B. Mikheev
9392a19196
Datum *idatum;
...
^
1997-06-12 15:39:44 +00:00
Bruce Momjian
858f35510e
Cleanup on xinv# table names.
1997-06-07 17:34:35 +00:00
Bruce Momjian
51b03770d7
avoid xinv* table name conflict with large objects.
1997-06-07 05:19:06 +00:00
Bruce Momjian
a089cdd9d3
lowercase large object table name fix.
1997-06-06 03:41:16 +00:00
Vadim B. Mikheev
f1cf69c080
cc1: warnings being treated as errors
...
remove.c: In function `RemoveAggregate':
remove.c:413: warning: unused variable `typename'
-> got rid of it.
1997-06-03 06:23:24 +00:00
Vadim B. Mikheev
2f8c2e997b
Fix deleted tuples re-incarnation possible when vacuum transaction
...
start time equal to tuple->t_tmax.
Privent shrinking if there are tuples modifyed by running transactions
(it concerns system relations only, currently).
1997-06-03 01:29:26 +00:00
Vadim B. Mikheev
5b5c83f9e7
Oracle like currval behaviour.
1997-06-02 11:22:52 +00:00
Marc G. Fournier
5e7c0a0b9a
From: Darren King <aixssd!darrenk@abs.net>
...
Subject: [PATCHES] DROP AGGREGATE patch/fix.
Here's a patch that fixes the DROP AGGREGATE command to delete
the desired aggregate for a specific type.
1997-05-22 00:17:24 +00:00
Vadim B. Mikheev
b45128f1c3
Kill re-incarnated bug arround
...
Assert ( --Vnpages > 0 );
and
Assert ( --Fnpages > 0 );
1997-05-05 10:01:02 +00:00
Vadim B. Mikheev
3055eeff93
More informative NOTICEs in tuple checks.
1997-04-30 03:05:43 +00:00
Vadim B. Mikheev
3c461c8397
Analyze data only if specified and specified attrs only.
1997-04-23 06:28:48 +00:00
Vadim B. Mikheev
a0d63ac98c
The patch fixes a rare bug that may occur when one tries to vacuum a single
...
table. The table name is de-allocated by the CommitTransactionCommand()
in vc_init() before it is copied in VacRel.data and sometimes this causes
a SIGSEGV. My patch simply moves the strcpy before vc_init.
Submitted by Massimo Dal Zotto <dz@cs.unitn.it>.
1997-04-17 01:45:36 +00:00
Marc G. Fournier
5dcc9bef6e
Patch for Solaris 2.5 from: adrian@waltham.harvard.net
1997-04-15 18:18:45 +00:00
Vadim B. Mikheev
0762deacec
Print 'Group' as name of Group plan.
1997-04-05 06:42:32 +00:00
Vadim B. Mikheev
e276d8a1a6
Can't COPY TO sequence relation.
...
Can't inherits from ...
1997-04-02 03:57:06 +00:00
Vadim B. Mikheev
e8647c45d6
Sequence numbers generators code.
1997-04-02 03:51:23 +00:00
Vadim B. Mikheev
1a3c7371e8
vc_getrels(p, VacRelP) returns NIL for special relations (indices,
...
sequences,...) and vc_delhilowstats(NULL->vrl_relid) ...
1997-04-02 03:48:01 +00:00
Vadim B. Mikheev
3be7ecb2e4
Disallow to create multi-column indices using non-btree.
1997-03-26 03:05:28 +00:00
Vadim B. Mikheev
aa1a887185
Fix call to index_create in DefineIndex.
1997-03-19 07:52:03 +00:00
Marc G. Fournier
e4949f9fe5
From: Dan McGuirk <mcguirk@indirect.com>
...
Subject: [HACKERS] better access control error messages
This patch replaces the 'no such class or insufficient privilege' with
distinct error messages that tell you whether the table really doesn't
exist or whether access was denied.
1997-03-12 20:48:48 +00:00
Bruce Momjian
ea36b0d3cd
Add missing paren.
1997-03-10 15:08:57 +00:00
Marc G. Fournier
977654d55b
Massimo's Deadlock patches w/o the #ifdefs
1997-03-10 00:18:09 +00:00
Bruce Momjian
766bdd2bb5
Vacuum cleanups from Massimo.
1997-03-09 23:29:15 +00:00
Bruce Momjian
d8023a00bd
Fix vacuum crash Vadim found.
1997-03-09 07:12:36 +00:00
Bruce Momjian
22cabc5514
Reverse patch for Vadims problem.
1997-03-07 00:59:05 +00:00
Bruce Momjian
da90363c12
Fix vacuum bug Vadim found with text fields.
1997-03-06 18:38:35 +00:00
Vadim B. Mikheev
74bd93d597
Not understandable fix of strange bug in vacuum statistic functions.
1997-03-06 11:41:09 +00:00
Bruce Momjian
e230c0b672
Clarify clearing of attribute stats memory.
1997-02-18 04:13:57 +00:00
Bruce Momjian
2300ac0dc4
Add attribute optimization statistics.
1997-02-07 16:24:12 +00:00
Vadim B. Mikheev
daf75276d4
New func _vc_scanoneind: scan one index relation to update statistic
...
in pg_class if no one page was reapped by vacuum.
1997-01-29 02:59:03 +00:00
Marc G. Fournier
37e8621623
The check should be for getrusage(), not rusage() ... change the defines
...
to reflect what configure is going to define when the time comes
1997-01-25 19:29:47 +00:00
Marc G. Fournier
60265ee651
Switch over NEED_RUSAGE to HAVE_RUSAGE for configure
1997-01-24 23:48:32 +00:00
Bruce Momjian
84876289cc
Cast constants to the type of the other binary operand.
...
Invalidate vacuum relation cache to use new row counts from vacuum.
1997-01-22 01:44:02 +00:00
Bruce Momjian
bc18c38d1a
Prevent UNIQUE indexes for non-btree access methods.
1997-01-18 05:48:07 +00:00
Bruce Momjian
3a02ccfa1d
Change EXPLAIN options to just use VERBOSE.
1997-01-16 14:56:59 +00:00
Bruce Momjian
0d3bf78e0b
Added VERBOSE option to vacuum command.
1997-01-13 03:45:33 +00:00
Bruce Momjian
a5dd06f763
include sem.h added, include string.h neede, from Erik Bertelsen for Ultrix
1997-01-10 20:19:49 +00:00
Bruce Momjian
a0d9bdd99b
Massimo fix for non-existant file copy error.
1997-01-10 17:46:33 +00:00
Vadim B. Mikheev
c6a605705c
index_insert has now HeapRelation as last param (for unique index
...
implementation).
1997-01-10 10:00:39 +00:00
Bryan Henderson
e5ff0b930a
Add include of port-protos.h so it works on Ultrix. Thanks Erik Bertelson.
1997-01-08 08:31:07 +00:00
Vadim B. Mikheev
068a4c53af
Closing opened indices.
1997-01-05 10:58:15 +00:00
Bruce Momjian
1a395b7256
ALTER TABLE (text) fix
1997-01-02 06:18:25 +00:00
Bruce Momjian
765dd2a4c0
explain change
1996-12-29 19:31:16 +00:00
Bruce Momjian
4415e481ef
Improved EXPLAIN option handling.
1996-12-29 00:53:20 +00:00
Marc G. Fournier
194ed4efe5
More patches/documentation from: Massimo Dal Zotto <dz@cs.unitn.it>
1996-12-19 05:01:17 +00:00
Marc G. Fournier
07c8d9f0f3
COPY_PATCH...
...
Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-12-19 04:58:24 +00:00
Marc G. Fournier
f0bcb1762d
#ifdef ASYNC_DEBUG various sections of async.c
...
Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-12-19 04:54:56 +00:00
Vadim B. Mikheev
b555822fed
Unuseful tupDesc = CreateTupleDesc(attr_count, attr); in CopyFrom
...
is eliminated (now I can copy 2000000-table from file without memmory
exhausting).
1996-12-14 04:58:20 +00:00
Bryan Henderson
7439ba64b1
Use "Oid" type where applicable and %ud instead of %d. Thanks Darren King.
1996-12-11 03:18:12 +00:00
Bruce Momjian
c90c058bf0
Fix from Jan agreed with by Massimo.
1996-12-07 04:36:38 +00:00
Vadim B. Mikheev
e5fbe3017c
pname=NULL -> pname="" (stringinfo.c:appendStringInfo doesn't like NULL).
1996-12-03 05:50:11 +00:00