summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/nabstime.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Fix timezone manipulation code to avoid crashes on some machines.Thomas G. Lockhart1997-05-111-3/+3
| | | | | | | Add type conversion functions for floating point numbers. Check for zero in unary minus floating point code (IEEE allows an explicit negative zero which looks ugly in a query result!). Ensure circle type has non-negative radius.
* More timezone patches by Thomas:Marc G. Fournier1997-04-251-20/+28
| | | | | | | | | Here are patches which should help fix timezone problems in the datetime and abstime code. Also, I repatched varlena.c to add in some comments and a little error checking on top of Vadim's earlier repairs. There are slight mods to the circle data type to have the distance operator between circles measure the distance between closest points rather than between centers.
* From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>Marc G. Fournier1997-04-221-8/+16
| | | | | | | | | | | | | Subject: [PATCHES] date/time timezone patches (mail bounced?) Here are some hacks to get timezone behavior for the various time data types to be compatible with v6.0. Although we have some hooks already installed to get timezone info from the client to the server, it still isn't clear if that can correctly transfer enough timezone info to make the behavior the same as if timezone info were derived from the server as is now the case. We certainly won't resolve it in a day, so I think we are stuck with server-only timezones for v6.1.