- 26 Mar, 1997 4 commits
-
-
Marc G. Fournier authored
-
Vadim B. Mikheev authored
-
Vadim B. Mikheev authored
-
Vadim B. Mikheev authored
tupleDesc->attrs[i]->attlen in fastgetiattr.
-
- 25 Mar, 1997 17 commits
-
-
Marc G. Fournier authored
Remove 'unused variable' from dt.c
-
Marc G. Fournier authored
-
Marc G. Fournier authored
-
Marc G. Fournier authored
-
Marc G. Fournier authored
Subject: [HACKERS] backend/utils/adt/timestamp.c Back to this timezone stuff. The struct tm has a field (tm_gmtoff) which is the offset from UTC (GMT is archaic BTW) in seconds. Is this the value you are looking for when you use timezone? Note that this applies to NetBSD but it does not appear to be in either ANSI C or POSIX. This looks like one of those things that is just going to have to be hand coded for each platform. Why not just store the values in UTC and use localtime instead of gmtime when retrieving the value? Also, you assume the time is returned as a 4 byte integer. In fact, there is not even any requirement that time be an integral value. You should use time_t here. The input function seems unduly restrictive. Somewhere in the sources there is an input function that allows words for months. Can't we do the same here? There is a standard function, difftime, for subtracting two times. It deals with cases where time_t is not integral. There is, however, a small performance hit since it returns a double and I don't believe there is any system currently which uses anything but an integral for time_t. Still, this is technically the correct and portable thing to do. The returns from the various comparisons should probably be a bool.
-
Marc G. Fournier authored
Christoph Kaesling <ck@dog.pfalz.sub.de>
-
Marc G. Fournier authored
The first fixes a warning from gcc about the assignment within the condition. The extra set of parens should not make a difference, but with -Werror, they are necessary. The second fixes an "ln -s" invocation that assumes the current directory is implicitly the target if not specified. Not true in all cases, and again, it should not make a difference except to those implementation that it does. From: "Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>
-
Marc G. Fournier authored
of endian.h. I figure that if it exists it's pretty sure that it has the byte order information and we may catch some other ports without any further testing. From: "D'Arcy J.M. Cain" <darcy@druid.net>
-
Marc G. Fournier authored
Pointed out indirectly by D'Arcy
-
Marc G. Fournier authored
Subject: [HACKERS] More patches for date/time I have accumulated several patches to add functionality to the datetime and timespan data types as well as to fix reported porting bugs on non-BSD machines. These patches are: dt.c.patch - add datetime_part(), fix bugs dt.h.patch - add quarter and timezone support, add prototypes globals.c.patch - add time and timezone variables miscadmin.h.patch - add time and timezone variables nabstime.c.patch - add datetime conversion routine nabstime.h.patch - add prototypes pg_operator.h.patch - add datetime operators, clean up formatting pg_proc.h.patch - add datetime functions, reassign conflicting date OIDs pg_type.h.patch - add datetime and timespan data types The dt.c and pg_proc.h patches are fairly large; the latter mostly because I tried to get some columns for existing entries to line up.
-
Marc G. Fournier authored
"Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>
-
Marc G. Fournier authored
-
Vadim B. Mikheev authored
(#ifdef-ed).
-
Marc G. Fournier authored
nicer. Also, I grabbed my copy of the Informix manual, and added a couple of variables that make sense (formats for money, time, a language setting, a timezone). - New functions SetPGVariable() and GetPGVariable() in tcop/*. These don't actually do anything for the moment, but should be enough to implement the SET var_name TO var_val in the parser? SetPGVariable() expects just two strings, the var_name and the var_value from above, and is expected to do the right thing. Returns TRUE if everything okay. From: "Martin J. Laubach" <mjl@wwx.vip.at>
-
Marc G. Fournier authored
-
Marc G. Fournier authored
fix, but figure I"ll know soon enough, eh? Patch submitted by Dan McGuirk
-
Marc G. Fournier authored
Pointed out by Dan McGuirk
-
- 24 Mar, 1997 4 commits
-
-
Vadim B. Mikheev authored
Actually required by multi-column indices support. We still don't use btree for 'A is (not) null', but now btree keep items with NULL attrs using single rule for placing/finding items on pages: NULLs greater NOT_NULLs and NULL = NULL. + Bulkload code (nbtsort.c) support for multi-column indices building and NULLs. + Fix for btendscan()->pfree(scanopaque) from Chris Dunlop.
-
Vadim B. Mikheev authored
for which checking was TRUE.
-
Vadim B. Mikheev authored
-
Vadim B. Mikheev authored
is in use by btree now.
-
- 21 Mar, 1997 2 commits
-
-
Marc G. Fournier authored
Thanks to D'Arcy for pointing this one out
-
Marc G. Fournier authored
Subject: [HACKERS] backend/utils/adt/nabstime.c There is a problem with some of the calls to strftime. The second arg is missing. In all cases the buffer is CTZName which, according to the file init/globals.c, is char CTZName[8] so I have added this value. I know there should be a #define set up for this but I wasn't sure which header to put it in.
-
- 20 Mar, 1997 4 commits
-
-
Marc G. Fournier authored
From: Keith Parks <emkxp01@mtcc.demon.co.uk>
-
Marc G. Fournier authored
Subject: [HACKERS] libpq/pqcomm stuff and Solaris byte order I decided to go ahead with the required changes since no one else seems to. I don't guarantee that it is perfect but with these changes the package actually compiles. While I was at it I added to the Sparc Solaris header to define the byte order. Note that NetBSD sets this in the system headers so it wasn't required there. In particular, someone may want to check whether I removed the correct 84 lines from backend/libpq/pqcomprim.c.
-
Marc G. Fournier authored
include crypt.h in password.c if crypt.h does exist
-
Marc G. Fournier authored
*hopefully* will fix the linux configuration problem..?
-
- 19 Mar, 1997 8 commits
-
-
Vadim B. Mikheev authored
-
Vadim B. Mikheev authored
-
Vadim B. Mikheev authored
-
Marc G. Fournier authored
-
Marc G. Fournier authored
Change Makefile to refl removal of portc Change dynloader.c so that its only used if PRE_BSDI_2_1 is defined
-
Marc G. Fournier authored
found
-
Marc G. Fournier authored
-
Marc G. Fournier authored
-
- 18 Mar, 1997 1 commit
-
-
Marc G. Fournier authored
Subject: [HACKERS] auth.c for kerberos. I made pgsql with eBones(international version of Kerberos4). The following modification was needed. And I added read permition for group to srvtab instead of running postmaster as root.
-