summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/nabstime.c
Commit message (Collapse)AuthorAgeFilesLines
* Ensure that all uses of <ctype.h> functions are applied to unsigned-charTom Lane2000-12-031-2/+2
| | | | | values, whether the local char type is signed or not. This is necessary for portability. Per discussion on pghackers around 9/16/00.
* USE_POSIX_TIME replaced by HAVE_TM_ZONE || HAVE_INT_TIMEZONE, which arePeter Eisentraut2000-10-291-27/+19
| | | | | | | | equivalent. In linux.h there were some #undef HAVE_INT_TIMEZONE, which are useless because HAVE_TM_ZONE overrides it anyway, and messing with configure results isn't cool.
* Standardize on __CYGWIN__ rather than __CYGWIN32__ macro. Doesn't matterPeter Eisentraut2000-09-291-2/+2
| | | | | either way (although the former is preferred by the Cygwin folks themselves), but using only one seems nicer.
* Remove <values.h> inclusions, no-longer-needed MAXINT definitions.Tom Lane2000-07-281-5/+1
|
* Remove a bunch of unused configure tests, in particular cases wherePeter Eisentraut2000-07-121-12/+4
| | | | | | | | | | * the result is not recorded anywhere * the result is not used anywhere * the result is only used in some places, whereas others have been getting away with it * the result is used improperly Also make command line options handling a little better (e.g., --disable-locale, while redundant, should really still *dis*able).
* TOASTJan Wieck2000-07-031-2/+2
| | | | | | | | WARNING: This is actually broken - we have self-deadlocks due to concurrent changes in buffer management. Vadim and me are working on it. Jan
* Tamotsu Nakagawa has posted a fix for this to a local mail list inBruce Momjian2000-06-271-2/+3
| | | | | | | Japan. Can someone comment on this? According to him, with the patch now only the geometry test fails. Tatsuo Ishii
* Another round of updates for new fmgr, mostly in the datetime code.Tom Lane2000-06-091-347/+428
|
* Repair problems with overrun of timezone name length. Increase MAXTZLENTom Lane2000-05-291-9/+6
| | | | | | to 10, and be consistent about whether it counts the trailing null (it does not). Also increase MAXDATELEN to be sure no buffer overflows are caused by the longer MAXTZLEN.
* Ye-old pgindent run. Same 4-space tabs.Bruce Momjian2000-04-121-7/+15
|
* Implement "date/time grand unification".Thomas G. Lockhart2000-02-161-25/+1303
| | | | | | | | | | | | | Transform datetime and timespan into timestamp and interval. Deprecate datetime and timespan, though translate to new types in gram.y. Transform all datetime and timespan catalog entries into new types. Make "INTERVAL" reserved word allowed as a column identifier in gram.y. Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility routines for all date/time types. date.{h,c} now deals with date, time types. timestamp.{h,c} now deals with timestamp, interval types. nabstime.{h,c} now deals with abstime, reltime, tinterval types. Make NUMERIC a known native type for purposes of type coersion. Not tested.
* Add:Bruce Momjian2000-01-261-2/+3
| | | | | | * Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
* Fixed all elog related warnings, as well as a few others.Peter Eisentraut2000-01-151-3/+3
|
* Remove DATEDEBUG because it didn't look Y2K safe, and fix timestamp elogBruce Momjian2000-01-021-22/+1
| | | | to be Y2K safe.
* Hi,Bruce Momjian1999-12-091-3/+21
| | | | | | | | | | | | | | | | I was able to crash postgres 6.5.3 when I did an 'alter user' command. After I started a debugger I found the problem in the timezone handling of datetime (my Linux box lost its timezone information, that's how the problem occurred). Only 7 bytes are reserved for the timezone, without checking for boundaries. Attached is a patch that fixes this problem and emits a NOTICE if a timezone is encountered that is longer than MAXTZLEN bytes, like this: Jeroen van Vianen
* Move some system includes into c.h, and remove duplicates.Bruce Momjian1999-07-171-3/+1
|
* Final cleanupBruce Momjian1999-07-161-3/+1
|
* Final cleanup.Bruce Momjian1999-07-161-3/+4
|
* Change #include's to use <> and "" as appropriate.Bruce Momjian1999-07-151-2/+2
|
* Clean up #include in /include directory. Add scripts for checking includes.Bruce Momjian1999-07-151-2/+1
|
* Cleanup of /include #include's, for 6.6 only.Bruce Momjian1999-07-141-1/+2
|
* pgindent run over code.Bruce Momjian1999-05-251-7/+14
|
* Fix from Yutaka Tanida <yutaka@marin.or.jp> for Cygwin32 support.Tatsuo Ishii1999-04-261-2/+11
|
* From: Tatsuo Ishii <t-ishii@sra.co.jp>Marc G. Fournier1999-02-211-2/+2
| | | | | | Ok. I made patches replacing all of "#if FALSE" or "#if 0" to "#ifdef NOT_USED" for current. I have tested these patches in that the postgres binaries are identical.
* Change my-function-name-- to my_function_name, and optimizer renames.Bruce Momjian1999-02-131-2/+2
|
* Change ordering of HAVE_TM_ZONE and HAVE_INT_TIMEZONE code blocksThomas G. Lockhart1998-12-311-12/+11
| | | | | | | | to give HAVE_TM_ZONE priority. This fixes glibc2 machines and any other machine which passes both tests in configure. Repair HAVE_TM_ZONE code which stuffs tm structure with date type values. Same problems as were originally there before v6.1, but never noticed. Thanks to Oleg for nagging :)
* Oops, sorry...meant to commit the patch from Thomas for tzn->CTZNameMarc G. Fournier1998-12-151-6/+2
|
* tzn undeclared in FreeBSD, commented out.Vadim B. Mikheev1998-12-151-1/+4
|
* more cleanups...of note, appendStringInfo now performs like sprintf(),Marc G. Fournier1998-12-141-6/+2
| | | | | | | | | | 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.
* Switch around conditional code so that HAVE_TM_ZONE takes precedenceThomas G. Lockhart1998-12-131-15/+25
| | | | | | | over HAVE_INT_TIMEZONE. This may help out linux/glibc2 and Dec Alpha. Included #error precompiler macros to catch cases where neither is defined but USE_POSIX_TIME is (shouldn't happen). Hopefully this isn't just a gcc-ism.
* Make functions static or ifdef NOT_USED. Prevent pg_version creation.Bruce Momjian1998-10-081-2/+3
|
* Renaming cleanup, no pgindent yet.Bruce Momjian1998-09-011-24/+24
|
* Remove unneeded strcpy() of timezone.Bruce Momjian1998-07-191-7/+1
|
* Remove un-needed braces around single statements.Bruce Momjian1998-06-151-3/+1
|
* pgindent run before 6.3 release, with Thomas' requested changes.Bruce Momjian1998-02-261-11/+11
|
* No datedebug printing of date debug is not defined.Bruce Momjian1998-02-021-2/+4
|
* AIX patch from Darren King and Univel patch from Billy Allie, mostlyBruce Momjian1998-02-011-6/+2
| | | | related to grammar and parser issues, with one postmaster fix.
* Allow varchar() to only store needed bytes. Remove PALLOC,PALLOCTYPE,PFREE. ↵Bruce Momjian1998-01-071-3/+3
| | | | Clean up use of VARDATA.
* Change some ABORTS to ERROR. Add line number when COPY Failure.Bruce Momjian1998-01-051-6/+6
|
* Change elog(WARN) to elog(ERROR) and elog(ABORT).Bruce Momjian1998-01-051-6/+6
|
* Fix for when POSIX time not defined.Bruce Momjian1997-10-301-2/+3
|
* Clean up comments.Thomas G. Lockhart1997-10-251-5/+5
|
* Used modified version of indent that understands over 100 typedefs.Bruce Momjian1997-09-081-4/+4
|
* Another PGINDENT run that changes variable indenting and case label ↵Bruce Momjian1997-09-081-94/+94
| | | | indenting. Also static variable indenting.
* Massive commit to run PGINDENT on all *.c and *.h files.Bruce Momjian1997-09-071-311/+371
|
* Make functions static where possible, enclose unused functions in #ifdef ↵Bruce Momjian1997-08-191-2/+3
| | | | NOT_USED.
* Remove more (void) and fix -Wall warnings.Bruce Momjian1997-08-121-3/+3
|
* Fix pgproc names over 15 chars in output. Add strNcpy() function. remove ↵Bruce Momjian1997-08-121-6/+6
| | | | some (void) casts that are unnecessary.
* Date-type fixes from Tatsuo IshiiBruce Momjian1997-07-081-1/+4
|
* Use the standard date/time encoder rather than strftime() for output.Thomas G. Lockhart1997-06-231-122/+63
| | | | This allows use of the DateStyle session variable.