Marc G. Fournier
1adb6a9d18
finished cleaning up outnodes.c ...
1998-12-20 07:13:36 +00:00
Jan Wieck
eeff2c94be
Fixed nodeToString() to put out "<>" for NULL strings again.
...
More cleanups to appendStringInfo() usage in node/outfuncs.c.
Jan
1998-12-18 14:45:09 +00:00
Marc G. Fournier
597205c353
From: Keith Parks <emkxp01@mtcc.demon.co.uk>
...
Looks like :vartypmod got transmuted to %vartypmod in an editing session.
1998-12-17 13:09:52 +00:00
Marc G. Fournier
c5a27161a1
More cleanups ... this is one big file *sigh*
1998-12-15 04:00:46 +00:00
Marc G. Fournier
3b8854ff93
Correct some typos...
1998-12-15 02:32:57 +00:00
Marc G. Fournier
c1bc907f01
More cleanups of appendStringInfo() function calls...
1998-12-15 02:24:15 +00:00
Marc G. Fournier
9396802f14
more cleanups...of note, appendStringInfo now performs like sprintf(),
...
where you state a format and arguments. the old behavior required
each appendStringInfo to have to have a sprintf() before it if any
formatting was required.
Also shortened several instances where there were multiple appendStringInfo()
calls in a row, doing nothing more then adding one more word to the String,
instead of doing them all in one call.
1998-12-14 08:11:17 +00:00
Marc G. Fournier
df1468e251
Many more cleanups...
1998-12-14 06:50:32 +00:00
Thomas G. Lockhart
4140c2f30e
Add support for the CASE statement in the rewrite handling.
...
Allows (at least some) rules and views.
Still some trouble (crashes) with target CASE columns spanning tables,
but lots now works.
1998-12-14 00:02:17 +00:00
Thomas G. Lockhart
bedd04a551
Implement CASE expression.
1998-12-04 15:34:49 +00:00
Vadim B. Mikheev
34680930d5
Fix using indices in OR.
...
EXPLAIN all indices used.
1998-11-22 10:48:45 +00:00
Bruce Momjian
002657f7ed
Add LIMIT syntax for Jan.
1998-10-22 13:52:24 +00:00
Bruce Momjian
fa1a8d6a97
OK, folks, here is the pgindent output.
1998-09-01 04:40:42 +00:00
Bruce Momjian
af74855a60
Renaming cleanup, no pgindent yet.
1998-09-01 03:29:17 +00:00
Bruce Momjian
093beb3560
Make attalign match type alignment.
1998-08-26 05:22:58 +00:00
Thomas G. Lockhart
0f19904360
Check for null pointer returned from get_opname().
1998-08-16 05:35:35 +00:00
Bruce Momjian
d9be0ff432
MergeSort was sometimes called mergejoin and was confusing. Now
...
it is now only mergejoin.
1998-08-04 16:44:31 +00:00
Bruce Momjian
0a2e5cdfc9
Allow index use with OR clauses.
1998-08-01 22:12:13 +00:00
Bruce Momjian
61700b4089
Makefile removal of internal.c.
1998-07-20 20:01:48 +00:00
Bruce Momjian
3dd2eabc53
Cleanup makeTargetEntry and remove internal.c.
1998-07-20 19:53:53 +00:00
Bruce Momjian
584f9438ca
Rename Rel to RelOptInfo.
1998-07-18 04:22:52 +00:00
Bruce Momjian
9e964f90fb
Fix explain for union and inheritance. Rename Append structure
...
members to be clearer. Fix cost computation for these.
1998-07-15 14:54:39 +00:00
Bruce Momjian
3600fd320f
Major man page update from Tom Lane. c
1998-07-14 01:45:25 +00:00
Bruce Momjian
f99dcd6d15
Fix for AS name quotation problem.
1998-07-13 21:27:58 +00:00
Bruce Momjian
683f399391
Change atttypmod from int16 to int32, for Thomas.
1998-07-12 21:29:40 +00:00
Bruce Momjian
db82332bdc
Fix for views that use AS with two words.
1998-07-09 14:59:27 +00:00
Bruce Momjian
6bd323c6b3
Remove un-needed braces around single statements.
1998-06-15 19:30:31 +00:00
Thomas G. Lockhart
e6a854dc41
Add some more node print routines for debugging only
...
(inside of #ifdef PARSEDEBUG blocks).
1998-05-09 23:46:35 +00:00
Bruce Momjian
4fcd0d6371
FIx confusion over SORT and SORTCLAUSE in node handling.
1998-04-27 02:58:07 +00:00
Bruce Momjian
1e801a8f16
Hi,
...
Attached you'll find a (big) patch that fixes make dep and make
depend in all Makefiles where I found it to be appropriate.
It also removes the dependency in Makefile.global for NAMEDATALEN
and OIDNAMELEN by making backend/catalog/genbki.sh and bin/initdb/initdb.sh
a little smarter.
This no longer requires initdb.sh that is turned into initdb with
a sed script when installing Postgres, hence initdb.sh should be
renamed to initdb (after the patch has been applied :-) )
This patch is against the 6.3 sources, as it took a while to
complete.
Please review and apply,
Cheers,
Jeroen van Vianen
1998-04-06 00:32:26 +00:00
Bruce Momjian
a32450a585
pgindent run before 6.3 release, with Thomas' requested changes.
1998-02-26 04:46:47 +00:00
Bruce Momjian
e4fd534645
Partial fix for select distinct in subselect.
1998-02-23 02:54:11 +00:00
Bruce Momjian
ec9e44ab7c
Add handling for new RangeTblEntry column name.
1998-02-21 18:17:58 +00:00
Bruce Momjian
856da1e65a
Constlen can be -1, so make it a signed type.
1998-02-21 16:58:49 +00:00
Marc G. Fournier
7b30490bc9
First step done,
...
below is the patch to have views to override the permission
checks for the accessed tables. Now we can do the following:
CREATE VIEW db_user AS SELECT
usename,
usesysid,
usecreatedb,
usetrace,
usecatupd,
'**********'::text as passwd,
valuntil
FROM pg_user;
REVOKE ALL ON pg_user FROM public;
REVOKE ALL ON db_user FROM public;
GRANT SELECT ON db_user TO public;
1998-02-21 06:32:15 +00:00
Vadim B. Mikheev
dc892fd390
Support for subselects.
...
(Have to re-visit readfuncs.c)
1998-02-13 03:27:47 +00:00
Bruce Momjian
0386a50f31
Pass around typmod as int16.
1998-02-10 16:04:38 +00:00
Bruce Momjian
2c482cdbf2
Pass attypmod through to executor by adding to Var and Resdom.
1998-02-10 04:02:59 +00:00
Marc G. Fournier
af32f4d5d3
Patch against src/backend/nodes/outfuncs.c.orig fixes backend crashes
...
when creating unique indexes.
From: James Hughes <jamesh@interpath.com>
1998-01-25 04:07:52 +00:00
Bruce Momjian
ef06ec61e6
Small varlena cleanup.
1998-01-21 23:42:15 +00:00
Bruce Momjian
7f31669bea
Add Var.varlevelup to code. More parser cleanup.
1998-01-20 22:12:17 +00:00
Bruce Momjian
412a5e6539
Parser cleanup.
...
Add lock to i386 asm.
1998-01-20 05:05:08 +00:00
Bruce Momjian
1316113ea3
Fix problem with nodes handling.
1998-01-19 18:11:10 +00:00
Bruce Momjian
b37bc65f44
Creates the SubLink structure, and the Query->hasSubLink field,
...
with supporting code.
Creates SubLink node in gram.y.
psql.c patch for newatttypmod field.
1998-01-17 04:53:46 +00:00
Bruce Momjian
c65ea0e040
New pg_attribute.atttypmod for type-specific information like
...
varchar length.
Cleans up code so attlen is always length.
Removed varchar() hack added earlier.
Will fix bug in selecting varchar() fields, and varchar() can be
variable length.
1998-01-16 23:21:07 +00:00
Bruce Momjian
763ff8aef8
Remove Query->qry_aggs and qry_numaggs and replace with Query->hasAggs.
...
Pass List* of Aggregs into executor, and create needed array there.
No longer need to double-processs Aggregs with second copy in Query.
Fix crash when doing:
select sum(x+1) from test where 1 > 0;
1998-01-15 19:00:16 +00:00
Bruce Momjian
660f458d3b
Clean up of copyfuncs.
1998-01-11 20:02:32 +00:00
Bruce Momjian
31a697bf92
Yohoo UNIONS of VIEWS.
1998-01-09 05:48:22 +00:00
Bruce Momjian
679d39b9c8
Goodbye ABORT. Hello ERROR for all errors.
1998-01-07 21:07:04 +00:00
Bruce Momjian
e9dc636e0c
Cleanup of outnodes.
1998-01-07 15:32:47 +00:00
Bruce Momjian
c01a56daf5
Fix for views and outnodes.
1998-01-07 08:08:08 +00:00
Bruce Momjian
56466049d6
Cleanup of outnode stuff.
1998-01-07 05:54:11 +00:00
Bruce Momjian
c9d9fe7690
Cleanup of outnode stuff.
1998-01-07 05:50:41 +00:00
Bruce Momjian
a552a894eb
Cleanup of outnode stuff.
1998-01-07 05:42:47 +00:00
Bruce Momjian
4557c846de
Cleanup of sort nodes and use of strtoul .
1998-01-06 23:19:49 +00:00
Bruce Momjian
9d00fbbeb0
Change some labels in bootparse to make ctags happy. Clean up outfunc/readfunc code and add missing fields for Query structure and new Union fields. Fix optimizer bug shown in new \do command. Change WARN to ERROR in contrib and regression stuff.
1998-01-06 18:53:02 +00:00
Bruce Momjian
0d9fc5afd6
Change elog(WARN) to elog(ERROR) and elog(ABORT).
1998-01-05 03:35:55 +00:00
Bruce Momjian
4b05912f0b
Fix for count(*), aggs with views and multiple tables and sum(3).
1998-01-04 04:31:43 +00:00
Bruce Momjian
4ce24c8aa9
UNION work for UNION ALL and other union stuff.
1997-12-27 06:41:41 +00:00
Bruce Momjian
6231e161c9
Implementation of UNIONs.
1997-12-24 06:06:58 +00:00
Bruce Momjian
18adbd9aed
Reverse out Thomas's group clause change.
1997-12-23 21:49:03 +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
Thomas G. Lockhart
2119b523c5
Fix numeric comparision (... != NULL) to be (... > 0). gcc is happier now.
...
Add non-working code which is commented-out to copy GroupClause structures.
1997-12-23 19:53:30 +00:00
Thomas G. Lockhart
12d5c30c8c
Add routines to print AExpr, Ident, and AConst parsing structures.
1997-12-23 19:50:54 +00:00
Marc G. Fournier
6e337eef45
Major cleanout of PORTNAME variables from Makefiles...bound to screw up
...
some of the ports...
1997-12-20 00:29:35 +00:00
Bruce Momjian
e2aec508e2
Replace foo/bar to l1/l2.
1997-12-19 16:54:15 +00:00
Bruce Momjian
30856a3904
copy query cleanup.
1997-12-18 19:46:37 +00:00
Bruce Momjian
e9182152ec
Fix copy for no aggregates.
1997-12-18 19:13:49 +00:00
Bruce Momjian
6a45941f2f
Remove Existential, and ifdef out generate_fjoin. Neither did anything.
1997-12-18 12:54:45 +00:00
Bruce Momjian
6b00ec3713
Cleanup of agg copy.
1997-12-18 05:58:40 +00:00
Bruce Momjian
bf9c9f716c
Cleanup of agg copy.
1997-12-18 04:33:31 +00:00
Bruce Momjian
c64cc3228a
Fix Query handling for inheritance, and cost computations.
1997-12-18 03:03:41 +00:00
Marc G. Fournier
542d4e528d
First pass through, of many to come, towards making the whole source
...
tree "non-PORTNAME" dependent. Technically, anything that is PORTNAME
dependent should be able to be derived at compile time, through configure
or through gcc
1997-12-17 04:59:16 +00:00
Thomas G. Lockhart
6ad698c928
Add some printing capability for a few more node types (CreateStmt,
...
IndexStmt, IndexElem, ColumnDef).
1997-12-04 23:20:32 +00:00
Bruce Momjian
4a5b781d71
Break parser functions into smaller files, group together.
1997-11-25 22:07:18 +00:00
Bruce Momjian
e9e1ff226f
Remove all time travel stuff. Small parser cleanup.
1997-11-20 23:24:03 +00:00
Vadim B. Mikheev
32cd09ac6d
Good Bye, Time Travel!
1997-11-02 15:27:14 +00:00
Bruce Momjian
f3af1368bd
Rename strNcpy to StrNCpy, and change third parameter.
1997-10-25 01:10:58 +00:00
Vadim B. Mikheev
6c84398411
+ _copyGroup(Group *from)
1997-09-19 06:52:49 +00:00
Bruce Momjian
3f365ba0fc
Inline memset() as MemSet().
1997-09-18 20:22:58 +00:00
Bruce Momjian
b3b0f20412
Cleanup from patch applied.
1997-09-13 11:45:50 +00:00
Bruce Momjian
4213e44a0b
Fix for select null, "fail" from pg_am from Patrick van Kleef
1997-09-12 22:07:59 +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
0badb77e73
Fixed _copyRangeTblEntry
1997-09-04 13:24:01 +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
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
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
Vadim B. Mikheev
3e248edf43
Added _readAggreg() to work with T_Aggreg type.
1997-05-12 07:17:23 +00:00
Vadim B. Mikheev
81489528d0
Copy indexkeys in _copyIndexPath.
1997-04-10 07:59:09 +00:00
Marc G. Fournier
b66569e41f
From: Dan McGuirk <mcguirk@indirect.com>
...
Subject: [HACKERS] linux/alpha patches
These patches lay the groundwork for a Linux/Alpha port. The port doesn't
actually work unless you tweak the linker to put all the pointers in the
first 32 bits of the address space, but it's at least a start. It
implements the test-and-set instruction in Alpha assembly, and also fixes
a lot of pointer-to-integer conversions, which is probably good anyway.
1997-03-12 21:00:17 +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
a5dd06f763
include sem.h added, include string.h neede, from Erik Bertelsen for Ultrix
1997-01-10 20:19:49 +00:00
Bruce Momjian
28a08fd4ac
I have this annoying habit (among others) of putting
...
%ud in a printf format strings instead of just %u.
There were three occurances of this in catalog_utils.c,
two in parser.c and one in rewriteSupport.c in the oid
patch that I submitted and was applied. They won't crash
anything, but the error messages will have a 'd' after the
Oid. Annoying, but none are db-threatening.
Sorry about that folks...I'll be more careful in the future...
Darren King
1996-12-26 17:47:42 +00:00
Bruce Momjian
231e1e70d8
Rename parameter.
1996-12-20 20:31:31 +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