Bruce Momjian
a68a132a6c
Add VARHDRSZ where needed. Many places just used 4.
1997-12-06 22:57:36 +00:00
Thomas G. Lockhart
352b36877f
Add 'GERMAN' style to date/time output.
...
Probably have it wrong (dd.mm/yyyy) but can change it when we know.
Input routines always handled it.
1997-12-04 23:30:52 +00:00
Bruce Momjian
983ec2cb4b
Make parser functions static where possible.
1997-11-26 03:54:23 +00:00
Bruce Momjian
b704426618
Make parser functions static where possible.
1997-11-26 03:43:18 +00:00
Bruce Momjian
f7f2e18f8e
Remove tqual.h includes not needed.
1997-11-24 05:09:50 +00:00
Bruce Momjian
1409819a87
Fix for textcat on varchar() fields.
1997-11-23 21:39:12 +00:00
Bruce Momjian
3fa2bb316c
Remove archive stuff.
1997-11-21 18:12:58 +00:00
Bruce Momjian
e9e1ff226f
Remove all time travel stuff. Small parser cleanup.
1997-11-20 23:24:03 +00:00
Vadim B. Mikheev
c5d7a27275
Get rid of unused variable 'address'.
1997-11-18 07:58:10 +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
Thomas G. Lockhart
2fa330284c
Use limits.h for INT, SHRT, and SCHAR min and max values rather than
...
hardcoded values.
1997-11-17 16:26:27 +00:00
Thomas G. Lockhart
174f984b76
Use SHRT_MIN and SHRT_MAX for 2-byte integer limits.
1997-11-17 16:24:17 +00:00
Thomas G. Lockhart
e7946a53ad
Allow fractional values for delta times (e.g. '2.5 days').
...
Check valid numeric input more carefully for delta times.
Implement day of year as possible input to datetime_part().
1997-11-17 16:23:33 +00:00
Marc G. Fournier
9bcf350cc7
Apply Bryan's IPC Patches
...
From: Bryan Henderson <bryanh@giraffe.netgate.net>
1997-11-17 03:47:31 +00:00
Bruce Momjian
1c32d285a6
Remove pg_magic, defaults, server, hosts, and demon tables. unused.
1997-11-15 20:58:05 +00:00
Bruce Momjian
4e9df155f0
Add new \df psql option and oid8types() function.
1997-11-15 16:32:25 +00:00
Thomas G. Lockhart
fe36d461c2
Add errormsg initialization from patch by Keith Parks.
1997-11-10 15:15:40 +00:00
Thomas G. Lockhart
2b51c92d30
Clean up handling of environment variables in path names.
1997-11-10 15:14:34 +00:00
Marc G. Fournier
213d7b1ae3
From: Bryan Henderson <bryanh@giraffe.netgate.net>
...
The attached patch makes elog() write the message to stderr if there is
no frontend to talk to.
1997-11-09 04:43:35 +00:00
Bruce Momjian
c17fa36d3c
Add Unix domain socket support, from Goran Thyni, goran@bildbasen.se
1997-11-07 20:52:15 +00:00
Thomas G. Lockhart
4676b3034a
Routines for database initial access info and support.
1997-11-07 07:05:46 +00:00
Thomas G. Lockhart
8a7f79c83c
Add database.c for database initial access info and support.
1997-11-07 07:03:37 +00:00
Thomas G. Lockhart
7d1f2f8a27
Support alternate database locations.
1997-11-07 06:38:51 +00:00
Thomas G. Lockhart
c934ee7859
Change phrasing of input error message.
...
Add istrue() and isfalse() routines to implement SQL3 IS TRUE and IS FALSE.
1997-11-07 06:30:20 +00:00
Vadim B. Mikheev
32cd09ac6d
Good Bye, Time Travel!
1997-11-02 15:27:14 +00:00
Bruce Momjian
6cc0a00dec
Fix acl error, and remove duplicate pqtrace.
1997-11-01 05:21:57 +00:00
Thomas G. Lockhart
cc1b420cfd
Add routines istrue() and isfalse() to directly evaluate boolean type.
1997-10-30 16:45:12 +00:00
Bruce Momjian
06d88ecb17
Fix for when POSIX time not defined.
1997-10-30 14:06:47 +00:00
Vadim B. Mikheev
7bff4c5078
Now we are able to CREATE PROCEDURAL LANGUAGE (Thanks, Jan).
1997-10-28 15:11:45 +00:00
Thomas G. Lockhart
7f06f34636
Change column number constant to reflect change in column name
...
from "action" to "ev_action".
1997-10-25 05:38:52 +00:00
Thomas G. Lockhart
4fa25b8c99
Shorten routine names to <= 16 characters to fit in pg_proc table.
1997-10-25 05:22:58 +00:00
Thomas G. Lockhart
c0087c9faf
Add conversion routines for oid to and from text.
1997-10-25 05:21:54 +00:00
Thomas G. Lockhart
08b1a09ee0
Clean up comments.
1997-10-25 05:21:10 +00:00
Thomas G. Lockhart
317acd0818
Add conversions for int2 and int4 to and from text.
1997-10-25 05:19:22 +00:00
Thomas G. Lockhart
2c1557a2ff
Fix occasional uninitialized variable fractional seconds
...
in DecodeTimeOnly(). Only present when seconds are not specified
for input.
1997-10-25 05:18:17 +00:00
Thomas G. Lockhart
9f99e4c6b6
Add conversion from datetime to time data type.
...
Rename date+time conversion to datetime to ensure less than 16 characters
in routine name (required to fit in pg_proc table).
1997-10-25 05:16:09 +00:00
Thomas G. Lockhart
0d6facbad6
Modify one last line to complete changes for StrNCpy() macro addition.
...
Before, char16 was missing last character for output.
1997-10-25 05:12:38 +00:00
Thomas G. Lockhart
4677f0a255
Add debugging statement enabled by CASHDEBUG symbol definition.
1997-10-25 05:11:06 +00:00
Thomas G. Lockhart
3eb1bc67b1
Check explicitly for valid input strings for both TRUE and FALSE.
...
Allow true/false, yes/no, 1/0. Throw elog warning if anything else.
Allow shorter strings, so "t", "tr", "tru" and "true" match "true".
Old behavior accepted anything starting with "t" as TRUE,
everything else as FALSE.
1997-10-25 05:09:58 +00:00
Bruce Momjian
f3af1368bd
Rename strNcpy to StrNCpy, and change third parameter.
1997-10-25 01:10:58 +00:00
Thomas G. Lockhart
962c8bd66d
Accept additional values for TRUE: y, Y, 1.
...
Leave all other input values to return FALSE.
In next version, do more checking for valid inputs for both TRUE and FALSE.
1997-10-17 05:38:32 +00:00
Thomas G. Lockhart
9c800b8e48
Fix delta time decoding for 12 AM/PM.
1997-10-17 05:36:01 +00:00
Vadim B. Mikheev
78351f422b
Fix for backward cursors with ORDER BY.
1997-10-15 06:36:36 +00:00
Thomas G. Lockhart
a21c3e353a
Allow 't', 'T', and even/odd ASCII characters to denote true/false
...
rather than just 't' and 'T'. This allows yes/no and 1/0
to be interpreted as one might expect.
Clean up function declarations to use bool as the type for arguments
and return values.
1997-10-09 05:06:12 +00:00
Thomas G. Lockhart
8fe55efd7b
Support special values 'now', 'current', etc on output.
1997-10-09 05:02:17 +00:00
Thomas G. Lockhart
8b028b5c2d
From JM de Lauwereyns (jmlauwer@icdc.caissedesdepots.fr):
...
lconv is already taken as a struct identifier defined in a /usr/include file.
Only has an effect with USE_LOCALE enabled.
(Apparently unique to AIX and/or AIX compiler? thomas)
1997-10-03 13:10:06 +00:00
Bruce Momjian
c30b8f9dbd
AIX float fix.
1997-09-26 20:32:02 +00:00
Bruce Momjian
5e2c0a87c9
Fix for psort temp file names, from Vadim.
1997-09-26 20:05:47 +00:00
Thomas G. Lockhart
4293adc117
Disable checking for zero or one points with deeper parens on input.
...
Polygon input would not accept single-point polygon output and dump.
1997-09-25 14:09:04 +00:00
Bruce Momjian
55780ae0e8
Remove extra float.h I added.
1997-09-24 15:40:59 +00:00
Bruce Momjian
88325bd010
AIX fixes.
1997-09-23 22:53:47 +00:00
Thomas G. Lockhart
75aef05530
Add point_ne() function.
...
Fix up tabbing of most function declarations.
1997-09-20 16:22:31 +00:00
Thomas G. Lockhart
cc8dc825d8
Fix typo for default units for timespan input.
...
Place single-ticks around bad argument in elog messages.
Fix tabbing of large lookup tables (ugh).
1997-09-20 16:20:29 +00:00
Thomas G. Lockhart
fbf12681ab
Include tinterval comparison functions for span of interval.
1997-09-20 16:17:45 +00:00
Thomas G. Lockhart
5984746113
Include functions for integer/money arithmetic.
1997-09-20 16:15:34 +00:00
Bruce Momjian
3f365ba0fc
Inline memset() as MemSet().
1997-09-18 20:22:58 +00:00
Vadim B. Mikheev
b0ccd78479
Don't limit number of tuples in leftist trees!
...
Use qsort to sort array of tuples for nextrun when current
run is done and put into leftist tree from sorted array!
It's much faster and creates non-bushy tree - this is ve-e-ery good
for perfomance!
1997-09-18 14:41:56 +00:00
Vadim B. Mikheev
8f1e1b4551
No more SortTuplesInTree...
1997-09-18 14:33:46 +00:00
Bruce Momjian
8cb4154492
Inline frequently called functions.
1997-09-18 14:21:02 +00:00
Vadim B. Mikheev
712ea2507e
1. Use qsort for first run
...
2. Limit number of tuples in leftist trees:
- put one tuple from current tree to disk if limit reached;
- end run creation if limit reached by nextrun.
3. Avoid mergeruns() if first run is single one!
1997-09-18 05:37:31 +00:00
Vadim B. Mikheev
303f6514bd
+ int SortTuplesInTree = 2560;
...
(default value for max number of tuples in leftist tree)
1997-09-18 05:23:58 +00:00
Thomas G. Lockhart
31174f11d0
Remove difftime() calls.
...
Still uses time_t declarations, but most code will be changed for next release.
1997-09-16 16:12:55 +00:00
Vadim B. Mikheev
f3e9cf9c6b
Fix pfree problem.
1997-09-15 14:29:01 +00:00
Bruce Momjian
3a1cc07769
Cleanup for cash patch .
1997-09-13 12:05:32 +00:00
Bruce Momjian
48d0db968f
Fix for copy to stdout for cash.
1997-09-13 04:39:08 +00:00
Thomas G. Lockhart
2d2562e90d
Fix up error messages to remove extra newline. Use "zero" rather than "0.0".
1997-09-13 03:10:11 +00:00
Vadim B. Mikheev
a40a546e47
RelationBuildRuleLock(): char* --> Datum for ruleaction and
...
rule_evqual_string.
1997-09-12 06:57:04 +00:00
Bruce Momjian
1ea01720d5
heapattr functions now return a Datum, not char *.
1997-09-12 04:09:08 +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
Bruce Momjian
268b8be814
Cleanup needed for indent.
1997-09-06 00:22:44 +00:00
Bruce Momjian
ec05063be0
Cleanups needed for indent.
1997-09-05 20:20:56 +00:00
Bruce Momjian
ae50c8d84b
Cleanups needed for indent.
1997-09-05 19:32:44 +00:00
Bruce Momjian
a1635450b3
Cleanups needed for indent. Remove };
1997-09-05 18:13:45 +00:00
Bruce Momjian
868d708188
Add // comments.
1997-09-05 00:09:47 +00:00
Thomas G. Lockhart
7c243f83e8
Add comparision routines and catalog entries to support indices on
...
datetime and timespan.
1997-09-04 18:43:59 +00:00
Vadim B. Mikheev
b9188c3065
trigger_dynamic()->handle_load() func for loading SPI-triggers
1997-09-01 08:06:17 +00:00
Vadim B. Mikheev
c67208b3bb
Calls of RelationBuildTriggers() & FreeTriggerDesc()
1997-09-01 08:04:38 +00:00
Thomas G. Lockhart
98462b73f8
Shift time zone to GMT to correctly evaluate "current" time.
1997-09-01 06:13:21 +00:00
Vadim B. Mikheev
3152996ffb
Fix very old bug which made tuples changed/inserted by a commnd
...
visible to command itself (so we had multiple update of updated tuples,
etc).
1997-08-29 09:05:25 +00:00
Vadim B. Mikheev
8fd0898814
Fix time_cmp
1997-08-28 05:06:29 +00:00
Bruce Momjian
ed7a17dca0
Remove unneeded stat calls.
1997-08-27 03:48:50 +00:00
Bruce Momjian
20afa04d03
Fix for pointer arithmetic.
1997-08-26 19:24:36 +00:00
Bruce Momjian
5927d47b4f
Change void * to Dllist*.
1997-08-26 14:05:47 +00:00
Bruce Momjian
c4cb617504
Major patch to speed up backend startup after profiling analysis.
1997-08-24 23:08:01 +00:00
Bruce Momjian
021778eed3
We store Cash/money as int of size 4, so make it an int rather than a long.
1997-08-22 07:13:01 +00:00
Vadim B. Mikheev
ac0029aa0b
Fetch information about DEFAULT/CHECK while openning a relation.
1997-08-22 03:35:44 +00:00
Bruce Momjian
0ab2921290
Change time function names to be more consistent, and check for zero divides, from Michael Reifenberg.
1997-08-21 23:57:00 +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
197ced5923
Read info for DEFAULT from pg_attrdef.
1997-08-21 01:36:09 +00:00
Bruce Momjian
11ac1bf268
More NOT_USEDs
1997-08-20 14:54:35 +00:00
Bruce Momjian
4e9e00cb68
Fix for sunos4 difftime() call.
1997-08-19 21:47:07 +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