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
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
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
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
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
8fd0898814
Fix time_cmp
1997-08-28 05:06:29 +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
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
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
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
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
0f6a961e29
cleanup of patch
1997-08-12 20:39:16 +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
Thomas G. Lockhart
bf138e2139
Add routines for text trimming on both ends, substring, and string position.
...
Used to support SQL92 compatibility.
1997-07-29 16:12:07 +00:00
Thomas G. Lockhart
d95c93bf99
Fix bug to allow hh:mm:ss time entry for timespan/reltime types.
1997-07-29 16:09:38 +00:00
Thomas G. Lockhart
215bc83d75
Remove #ifdef'd support for old i/o styles.
...
Change box terminology from "length" to "width".
Use length terminology in common with other geometric types (usually perimeter).
Fix bugs in line arithmetic which resulted in bad intersection calculations.
Deprecate temporary unstored slope fields.
Check explicitly for intersections at endpoints to avoid rounding ugliness.
Add center() routines for lseg, path, polygon.
Add distance() routines for circle-polygon, polygon-polygon.
Check explicitly for points and polygons contained within polygons
using an axis-crossing algorithm. (Old code just checked bounding boxes).
Add routine to convert circle-box.
*whew*
1997-07-29 16:08:18 +00:00
Thomas G. Lockhart
1ba73ed3a0
Update some reltime code to use new common routines.
...
Use standard decoder for isreltime().
1997-07-29 15:54:49 +00:00
Thomas G. Lockhart
9d8ae79774
Add debugging statements.
1997-07-29 15:51:33 +00:00
Bruce Momjian
8d25436d70
mkLinux patches from Tatsuo Ishii.
1997-07-29 14:09:11 +00:00
Bruce Momjian
79e78f0b80
Added SCO support, from Daniel Harris.
1997-07-28 00:57:08 +00:00
Bruce Momjian
5a38a119b2
Remove sparc dir, add difftime macro for sunos.
1997-07-28 00:13:39 +00:00
Bruce Momjian
3ac9d2fff3
Various compile errors concerning overflow due to shifts, unsigned, and bad prototypes, from Solaris, from Diab Jerius
1997-07-24 20:19:10 +00:00
Bruce Momjian
3b7ee8f5f9
Allow underscores in user names.
1997-07-10 02:27:27 +00:00
Bruce Momjian
a5d80cb0cf
Date-type fixes from Tatsuo Ishii
1997-07-08 22:06:46 +00:00
Thomas G. Lockhart
8507ddb9c6
Use common parser and encoder for timestamp data type.
...
Remove older date and time code (retain NEW_DATE_CODE and NEW_TIME_CODE).
Use common encoder for date and time.
Fix datetime +/- timespan math bug.
1997-07-01 00:22:46 +00:00
Thomas G. Lockhart
1f4f4534a0
Use the standard date/time encoder rather than strftime() for output.
...
This allows use of the DateStyle session variable.
1997-06-23 14:56:15 +00:00
Thomas G. Lockhart
01264e84ba
Modify EncodeDateTime() to suppress trailing ".00" in seconds field.
...
This matches the behavior of the original formatting for abstime.
Repair datetime + timespan date arithmetic for year boundaries.
From patch submitted by Dave Skinner.
1997-06-23 14:50:56 +00:00
Thomas G. Lockhart
d9bccec0d2
Expunge code not enabled with USE_NEW_DATE and USE_NEW_TIME #defines.
1997-06-23 14:47:26 +00:00
Thomas G. Lockhart
3cef45d330
Fix leap year and month boundary arithmetic for datetime +/- timespan;
...
the problem only manifests itself when adding years/months and hours
when the hours:minutes:seconds pushes over midnight.
Fix interpretation of times with explicit timezone when the timezone is
in daylight savings time and is not the default timezone.
Allow interpretation of explicit timezone when it is specified as two words:
<standard time> DST". For example, "MET DST" (Middle European Time Daylight
Savings Time). This syntax is found in the zic package on Linux boxes at least.
1997-06-20 17:12:54 +00:00
Vadim B. Mikheev
0346ab7175
Lexicographically compare 'char' and 'text'.
1997-06-11 05:18:02 +00:00
Thomas G. Lockhart
06ea3c9a24
Add upgradepath(), isoldpath(), upgradepoly() and revertpoly() to allow
...
migration from pre-v6.1 geometric data types.
Only allow new input syntax for paths and polygons.
1997-06-03 14:01:22 +00:00
Thomas G. Lockhart
fe74581fa0
Use finite() macro if available to check returns from pow() and exp().
1997-06-03 13:58:06 +00:00
Thomas G. Lockhart
93ac35f06c
Fix a few DATEDEBUG print statements.
1997-06-03 13:56:32 +00:00
Vadim B. Mikheev
fa940fda67
cc1: warnings being treated as errors
...
dt.c: In function `timespan2tm':
dt.c:1722: warning: unused variable `funit'
dt.c:1722: warning: unused variable `iunit'
-> got rid of them.
1997-06-03 06:32:56 +00:00