OSDN Git Service

pg-rex/syncrep.git
27 years agoMisc port related issues
Marc G. Fournier [Tue, 1 Apr 1997 09:27:11 +0000 (09:27 +0000)]
Misc port related issues

27 years agoSlight Linux related bug pointed out by Gabriel Akos <gabriel@rocker.sch.bme.hu>
Marc G. Fournier [Fri, 28 Mar 1997 09:43:53 +0000 (09:43 +0000)]
Slight Linux related bug pointed out by Gabriel Akos <gabriel@rocker.sch.bme.hu>

27 years agoFrom: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Marc G. Fournier [Fri, 28 Mar 1997 07:18:06 +0000 (07:18 +0000)]
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] Small date patches (resubmitted)

Here a some small patches for the date/time code. They set the default
output format for the datetime type to the traditional Postgres
style, and fix a date debugging declaration. I submitted these
a couple of days ago, but they might have gotten lost...

NOTE: the second patch to dt.c is what I believe D'Arcy submitted as well,
      that I claimed was taken out...sorry D'Arcy, my fault :(

27 years agoFrom: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Marc G. Fournier [Fri, 28 Mar 1997 07:13:21 +0000 (07:13 +0000)]
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: Re: [HACKERS] abstime "now" broken

Yes, I broke 'now' :( with an attempt at a bug fix involving
servers running in the UTC/GMT timezone. These patches fix
the problem, and have been tested in GMT (+00 hours),
PST (-08), and NZT (+12) timezones which exercized the code for
various cases including across day boundaries.  btw, this code
fixes the same type of problem for 'today', 'yesterday', 'tomorrow',
for DATETIME, ABSTIME, DATE and TIME types.

The bugfix itself is quite small, but I have accumulated other
changes in the datetime data type and include them here also.
One set of changes involves printing ISO-formatted dates and
is in response to the helpful information from Kurt Lidl regarding
ANSI SQL dates. I'll send another e-mail sometime soon discussing
more issues he has raised...

27 years agoFrom: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Fri, 28 Mar 1997 07:06:53 +0000 (07:06 +0000)]
From: Dan McGuirk <mcguirk@indirect.com>
Reply-To: hackers@hub.org, Dan McGuirk <mcguirk@indirect.com>
To: hackers@hub.org
Subject: [HACKERS] tmin writeback optimization

I was doing some profiling of the backend, and noticed that during a certain
benchmark I was running somewhere between 30% and 75% of the backend's CPU
time was being spent in calls to TransactionIdDidCommit() from
HeapTupleSatisfiesNow() or HeapTupleSatisfiesItself() to determine that
changed rows' transactions had in fact been committed even though the rows'
tmin values had not yet been set.

When a query looks at a given row, it needs to figure out whether the
transaction that changed the row has been committed and hence it should pay
attention to the row, or whether on the other hand the transaction is still
in progress or has been aborted and hence the row should be ignored.  If
a tmin value is set, it is known definitively that the row's transaction
has been committed.  However, if tmin is not set, the transaction
referred to in xmin must be looked up in pg_log, and this is what the
backend was spending a lot of time doing during my benchmark.

So, implementing a method suggested by Vadim, I created the following
patch that, the first time a query finds a committed row whose tmin value
is not set, sets it, and marks the buffer where the row is stored as
dirty.  (It works for tmax, too.)  This doesn't result in the boost in
real time performance I was hoping for, however it does decrease backend
CPU usage by up to two-thirds in certain situations, so it could be
rather beneficial in high-concurrency settings.

27 years agoFrom: "D'Arcy J.M. Cain" <darcy@druid.net>
Marc G. Fournier [Fri, 28 Mar 1997 06:55:58 +0000 (06:55 +0000)]
From: "D'Arcy J.M. Cain" <darcy@druid.net>

#ifdef is looking for the wrong value.

27 years agoFrom: "D'Arcy J.M. Cain" <darcy@druid.net>
Marc G. Fournier [Fri, 28 Mar 1997 06:54:51 +0000 (06:54 +0000)]
From: "D'Arcy J.M. Cain" <darcy@druid.net>

Some systems require limits.h to define DBL_MIN.

27 years agoOn some systems limits.h is needed to define DBL_MIN.
Marc G. Fournier [Fri, 28 Mar 1997 06:53:50 +0000 (06:53 +0000)]
On some systems limits.h is needed to define DBL_MIN.

From: "D'Arcy J.M. Cain" <darcy@druid.net>

27 years agoAdded call to heap_endscan in IndexIsUniqueNoCache - to release
Vadim B. Mikheev [Thu, 27 Mar 1997 04:13:44 +0000 (04:13 +0000)]
Added call to heap_endscan in IndexIsUniqueNoCache - to release
our READ lock on pg_index and let others to create indices too !

27 years agoturn GEQO code on by default
Marc G. Fournier [Thu, 27 Mar 1997 01:00:41 +0000 (01:00 +0000)]
turn GEQO code on by default

27 years agoRemove customize in favor of 'build'
Marc G. Fournier [Wed, 26 Mar 1997 07:10:03 +0000 (07:10 +0000)]
Remove customize in favor of 'build'

27 years agoAdd ability to change installation directory in build, prior to configure
Marc G. Fournier [Wed, 26 Mar 1997 06:54:01 +0000 (06:54 +0000)]
Add ability to change installation directory in build, prior to configure

27 years agoAdd string.h for strerror() prototype
Marc G. Fournier [Wed, 26 Mar 1997 03:27:04 +0000 (03:27 +0000)]
Add string.h for strerror() prototype

27 years agoinclude float.h *after* postgres.h :(
Marc G. Fournier [Wed, 26 Mar 1997 03:14:37 +0000 (03:14 +0000)]
include float.h *after* postgres.h :(

27 years agoDisallow to create multi-column indices using non-btree.
Vadim B. Mikheev [Wed, 26 Mar 1997 03:05:28 +0000 (03:05 +0000)]
Disallow to create multi-column indices using non-btree.

27 years agoneed float.h under FreeBSD for DBL_MIN
Marc G. Fournier [Wed, 26 Mar 1997 03:02:15 +0000 (03:02 +0000)]
need float.h under FreeBSD for DBL_MIN

27 years ago'\h create index' shows that multi-column indices are available now.
Vadim B. Mikheev [Wed, 26 Mar 1997 03:01:29 +0000 (03:01 +0000)]
'\h create index' shows that multi-column indices are available now.

27 years agoAdded syntax for multi-column indices.
Vadim B. Mikheev [Wed, 26 Mar 1997 02:52:49 +0000 (02:52 +0000)]
Added syntax for multi-column indices.

27 years agoSomeone forgot about 'case sizeof(int32)' for
Vadim B. Mikheev [Wed, 26 Mar 1997 02:24:38 +0000 (02:24 +0000)]
Someone forgot about 'case sizeof(int32)' for
tupleDesc->attrs[i]->attlen in fastgetiattr.

27 years agoAdd checs for float.h
Marc G. Fournier [Tue, 25 Mar 1997 20:02:42 +0000 (20:02 +0000)]
Add checs for float.h

Remove 'unused variable' from dt.c

27 years agoAdd float.h for DBL_{MIN,MAX} under FreeBSD
Marc G. Fournier [Tue, 25 Mar 1997 20:00:52 +0000 (20:00 +0000)]
Add float.h for DBL_{MIN,MAX} under FreeBSD

27 years agoanother one missed
Marc G. Fournier [Tue, 25 Mar 1997 09:44:33 +0000 (09:44 +0000)]
another one missed

27 years agoMIssed adding a file to the repository
Marc G. Fournier [Tue, 25 Mar 1997 09:44:00 +0000 (09:44 +0000)]
MIssed adding a file to the repository

27 years agoFrom: "D'Arcy J.M. Cain" <darcy@druid.net>
Marc G. Fournier [Tue, 25 Mar 1997 09:25:33 +0000 (09:25 +0000)]
From: "D'Arcy J.M. Cain" <darcy@druid.net>
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.

27 years agoVarious patches for shared libraries under i386-solaris by:
Marc G. Fournier [Tue, 25 Mar 1997 09:21:59 +0000 (09:21 +0000)]
Various patches for shared libraries under i386-solaris by:

Christoph Kaesling <ck@dog.pfalz.sub.de>

27 years agoHere's two more diffs...
Marc G. Fournier [Tue, 25 Mar 1997 09:08:06 +0000 (09:08 +0000)]
Here's two more diffs...

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>

27 years agoRather than make this a Linux test, we should just test for the existence
Marc G. Fournier [Tue, 25 Mar 1997 08:25:47 +0000 (08:25 +0000)]
Rather than make this a Linux test, we should just test for the existence
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>

27 years agoUse $(LD_ADD) from Makefile.global instead of $(LDADD), which doesn't exist...
Marc G. Fournier [Tue, 25 Mar 1997 08:14:25 +0000 (08:14 +0000)]
Use $(LD_ADD) from Makefile.global instead of $(LDADD), which doesn't exist...

Pointed out indirectly by D'Arcy

27 years agoFrom: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Marc G. Fournier [Tue, 25 Mar 1997 08:11:24 +0000 (08:11 +0000)]
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
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.

27 years agoMOre univel port patches/files from:
Marc G. Fournier [Tue, 25 Mar 1997 07:54:53 +0000 (07:54 +0000)]
MOre univel port patches/files from:

"Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>

27 years agoStart of a univel port by "Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>
Marc G. Fournier [Tue, 25 Mar 1997 07:16:36 +0000 (07:16 +0000)]
Start of a univel port by "Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>

27 years agoFree memory allocated by command in the BlankPortal' HeapMemory context
Vadim B. Mikheev [Tue, 25 Mar 1997 04:10:21 +0000 (04:10 +0000)]
Free memory allocated by command in the BlankPortal' HeapMemory context
(#ifdef-ed).

27 years ago - Renamed the variable names to something shorter, and I hope
Marc G. Fournier [Tue, 25 Mar 1997 02:37:21 +0000 (02:37 +0000)]
  - Renamed the variable names to something shorter, and I hope
    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>

27 years agoAdd in alpha port
Marc G. Fournier [Tue, 25 Mar 1997 02:29:08 +0000 (02:29 +0000)]
Add in alpha port

27 years agoI don't know whether this breaks what the previous person tried to
Marc G. Fournier [Tue, 25 Mar 1997 00:54:15 +0000 (00:54 +0000)]
I don't know whether this breaks what the previous person tried to
fix, but figure I"ll know soon enough, eh?

Patch submitted by Dan McGuirk

27 years agoNeeds USE_POSIX_SIGNALS
Marc G. Fournier [Tue, 25 Mar 1997 00:52:12 +0000 (00:52 +0000)]
Needs USE_POSIX_SIGNALS

Pointed out by Dan McGuirk

27 years ago+ NULLs handling
Vadim B. Mikheev [Mon, 24 Mar 1997 08:48:16 +0000 (08:48 +0000)]
+ NULLs handling
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.

27 years agoNew func _bt_checkkeys() added to let caller know number of keys
Vadim B. Mikheev [Mon, 24 Mar 1997 08:04:51 +0000 (08:04 +0000)]
New func _bt_checkkeys() added to let caller know number of keys
for which checking was TRUE.

27 years agoSetting index' attributes attcacheoff to -1 in index_create().
Vadim B. Mikheev [Mon, 24 Mar 1997 07:39:47 +0000 (07:39 +0000)]
Setting index' attributes attcacheoff to -1 in index_create().

27 years agoAdded #define NullValueRegProcedure and #define NonNullValueRegProcedure -
Vadim B. Mikheev [Mon, 24 Mar 1997 07:32:38 +0000 (07:32 +0000)]
Added #define NullValueRegProcedure and #define NonNullValueRegProcedure -
is in use by btree now.

27 years agoForgot to add an AC_SUBST(STRERROR) to configure.in for the strerror() test
Marc G. Fournier [Fri, 21 Mar 1997 18:58:23 +0000 (18:58 +0000)]
Forgot to add an AC_SUBST(STRERROR) to configure.in for the strerror() test

Thanks to D'Arcy for pointing this one out

27 years agoFrom: "D'Arcy J.M. Cain" <darcy@druid.net>
Marc G. Fournier [Fri, 21 Mar 1997 18:53:28 +0000 (18:53 +0000)]
From: "D'Arcy J.M. Cain" <darcy@druid.net>
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.

27 years agochange strtok(0.. to strtok(NULL..
Marc G. Fournier [Thu, 20 Mar 1997 18:31:49 +0000 (18:31 +0000)]
change strtok(0.. to strtok(NULL..

From: Keith Parks <emkxp01@mtcc.demon.co.uk>

27 years agoFrom: "D'Arcy J.M. Cain" <darcy@druid.net>
Marc G. Fournier [Thu, 20 Mar 1997 18:23:33 +0000 (18:23 +0000)]
From: "D'Arcy J.M. Cain" <darcy@druid.net>
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.

27 years agoCheck for and set HAVE_CRYPT_H if <crypt.h> exists
Marc G. Fournier [Thu, 20 Mar 1997 18:04:32 +0000 (18:04 +0000)]
Check for and set HAVE_CRYPT_H if <crypt.h> exists

include crypt.h in password.c if crypt.h does exist

27 years agouse autoconf 2.12 instead of 2.10 to gernate configure script...
Marc G. Fournier [Thu, 20 Mar 1997 07:30:26 +0000 (07:30 +0000)]
use autoconf 2.12 instead of 2.10 to gernate configure script...

*hopefully* will fix the linux configuration problem..?

27 years agoFix call to index_create in DefineIndex.
Vadim B. Mikheev [Wed, 19 Mar 1997 07:52:03 +0000 (07:52 +0000)]
Fix call to index_create in DefineIndex.

27 years agoFix index_create for multi-column indices
Vadim B. Mikheev [Wed, 19 Mar 1997 07:44:45 +0000 (07:44 +0000)]
Fix index_create for multi-column indices

27 years agoFix index_create for multi-column indices
Vadim B. Mikheev [Wed, 19 Mar 1997 07:36:35 +0000 (07:36 +0000)]
Fix index_create for multi-column indices

27 years agoremove a double declaration/prototype
Marc G. Fournier [Wed, 19 Mar 1997 03:56:50 +0000 (03:56 +0000)]
remove a double declaration/prototype

27 years agoRemove port.c since it is redundant (well, empty, at least)
Marc G. Fournier [Wed, 19 Mar 1997 03:01:32 +0000 (03:01 +0000)]
Remove port.c since it is redundant (well, empty, at least)

Change Makefile to refl removal of portc

Change dynloader.c so that its only used if PRE_BSDI_2_1 is defined

27 years agoAdd a check for strerr, and add in D'Arcy's strerror() code in case not
Marc G. Fournier [Wed, 19 Mar 1997 02:37:42 +0000 (02:37 +0000)]
Add a check for strerr, and add in D'Arcy's strerror() code in case not
found

27 years agothere, that's fixed
Marc G. Fournier [Wed, 19 Mar 1997 02:13:27 +0000 (02:13 +0000)]
there, that's fixed

27 years agoFixing a screw up
Marc G. Fournier [Wed, 19 Mar 1997 02:12:15 +0000 (02:12 +0000)]
Fixing a screw up

27 years agoFrom: Jun Kuwamura <juk@rccm.co.jp>
Marc G. Fournier [Tue, 18 Mar 1997 21:46:31 +0000 (21:46 +0000)]
From: Jun Kuwamura <juk@rccm.co.jp>
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.

27 years agoReplace strsep() by strtok()
Marc G. Fournier [Tue, 18 Mar 1997 21:43:06 +0000 (21:43 +0000)]
Replace strsep() by strtok()

By: Dan McGuirk <mcguirk@indirect.com>

27 years agoThis is an attempt to get rid of some cruft...
Marc G. Fournier [Tue, 18 Mar 1997 21:40:41 +0000 (21:40 +0000)]
This is an attempt to get rid of some cruft...

According to man page under FreeBSD for sys_errlist[], strerror() should be
used instead...not sure if this will break other systems, so only changing
two files for now, and we'll see what "errors" it turns up

27 years agoPatch from Sven Verdoolaege <skimo@breughel.ufsia.ac.be> for large_objects
Marc G. Fournier [Tue, 18 Mar 1997 21:30:41 +0000 (21:30 +0000)]
Patch from Sven Verdoolaege <skimo@breughel.ufsia.ac.be> for large_objects

27 years ago - Move most of the I/O in both libpq and the backend to a set
Marc G. Fournier [Tue, 18 Mar 1997 20:15:39 +0000 (20:15 +0000)]
  - Move most of the I/O in both libpq and the backend to a set
    of common routines in pqcomprim.c (pq communication primitives).
    Not all adapted to it yet, but it's a start.

  - Rewritten some of those routines, to write/read bigger chunks of
    data, precomputing stuff in buffers instead of sending out byte
    by byte.

  - As a consequence, I need to know the endianness of the machine.
    Currently I rely on getting it from machine/endian.h, but this
    may not be available everywhere? (Who the hell thought it was
    a good idea to pass integers to the backend the other way around
    than the normal network byte order? *argl*)

  - Libpq looks in the environment for magic variables, and upon
    establishing a connection to the backend, sends it queries
    of the form "SET var_name TO 'var_value'". This needs a change
    in the backend parser (Mr. Parser, are you there? :)

  - Currently it looks for two Env-Vars, namely PG_DATEFORMAT
    and PG_FLOATFORMAT. What else makes sense? PG_TIMEFORMAT?
    PG_TIMEZONE?

From: "Martin J. Laubach" <mjl@wwx.vip.at>

27 years agoPatches for Vadim's multikey indexing...
Marc G. Fournier [Tue, 18 Mar 1997 18:41:37 +0000 (18:41 +0000)]
Patches for Vadim's multikey indexing...

27 years agoAdd in Vadim's multikey functions/examples as part of contrib
Marc G. Fournier [Tue, 18 Mar 1997 18:31:43 +0000 (18:31 +0000)]
Add in Vadim's multikey functions/examples as part of contrib

27 years agoResync the source tree, commit some things that were missing (pqcomprim.c) and
Marc G. Fournier [Tue, 18 Mar 1997 16:36:50 +0000 (16:36 +0000)]
Resync the source tree, commit some things that were missing (pqcomprim.c) and
bring in Thomas's updates for the date/time code...

27 years agoFixes for libpgtcl from Massimo
Marc G. Fournier [Mon, 17 Mar 1997 22:05:08 +0000 (22:05 +0000)]
Fixes for libpgtcl from Massimo

27 years agoAdd in a check for libcrypt.a
Marc G. Fournier [Mon, 17 Mar 1997 19:03:05 +0000 (19:03 +0000)]
Add in a check for libcrypt.a

Pointed out by Martin

27 years agooracle_compat.c fixed for function overloading...
Marc G. Fournier [Sun, 16 Mar 1997 20:40:52 +0000 (20:40 +0000)]
oracle_compat.c fixed for function overloading...

By: From: Edmund Mergl <mergl@nadia.s.bawue.de>

27 years agoDon't forget the fe-connect.h include file
Marc G. Fournier [Sun, 16 Mar 1997 19:06:04 +0000 (19:06 +0000)]
Don't forget the fe-connect.h include file

27 years agoFrom: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Marc G. Fournier [Sun, 16 Mar 1997 19:05:00 +0000 (19:05 +0000)]
From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] Patches for 970316 compilation

I made a small pre-emptive change in the new datetime code to eliminate
calls to infnan(). Hopefully this will make Solaris (and probably other
non-GNUlib) systems happier. Didn't find fe-connect.h in the 970316
distribution, so made one up. Also, one of the test routines needs an
update for the geo-decls.h -> geo_decls.h name change.
Patches appear below...

27 years agoom: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>
Marc G. Fournier [Sun, 16 Mar 1997 18:51:29 +0000 (18:51 +0000)]
om: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>
Subject: [HACKERS] Patch for io routines

  I am currently trying to improve on the front-backend communication
routines; and noticed that lots of code are duplicated for libpq and
the backend. This is a first patch that tries to share code between
the two, more to follow.

        mjl

27 years agoHeader file fixes for MINDOUBLE
Marc G. Fournier [Sun, 16 Mar 1997 05:32:03 +0000 (05:32 +0000)]
Header file fixes for MINDOUBLE

27 years agoAdd a conditional for <values.h> vs <limits.h>
Marc G. Fournier [Sun, 16 Mar 1997 05:12:08 +0000 (05:12 +0000)]
Add a conditional for <values.h> vs <limits.h>

27 years agoRemove extra functions temporarily while a proper fix is found...
Marc G. Fournier [Sun, 16 Mar 1997 01:17:49 +0000 (01:17 +0000)]
Remove extra functions temporarily while a proper fix is found...

27 years agoRemove overloaded functions until we can figure out how to get them to work
Marc G. Fournier [Sun, 16 Mar 1997 01:16:31 +0000 (01:16 +0000)]
Remove overloaded functions until we can figure out how to get them to work
properly...

27 years agoNetBSD Shared Library Patch from Martin J. Laubach
Marc G. Fournier [Sat, 15 Mar 1997 19:17:03 +0000 (19:17 +0000)]
NetBSD Shared Library Patch from Martin J. Laubach

27 years agoRe-oid the oracle_compat functions
Marc G. Fournier [Sat, 15 Mar 1997 06:13:12 +0000 (06:13 +0000)]
Re-oid the oracle_compat functions
Add new "overloaded" oracle_compat functions (see man oracle_compat)

27 years agoA couple of development scripts by Dan to detect unused and duplicate
Marc G. Fournier [Sat, 15 Mar 1997 06:03:08 +0000 (06:03 +0000)]
A couple of development scripts by Dan to detect unused and duplicate
oids

27 years agoUpdate oracle_compat.c
Marc G. Fournier [Sat, 15 Mar 1997 06:00:19 +0000 (06:00 +0000)]
Update oracle_compat.c

27 years agoFrom: Massimo Dal Zotto <dz@cs.unitn.it>
Marc G. Fournier [Sat, 15 Mar 1997 01:23:58 +0000 (01:23 +0000)]
From: Massimo Dal Zotto <dz@cs.unitn.it>
Subject: [HACKERS] lock debug trace

This is an update to my previous patches for lock debugging, already applied
to the current sources. It adds some improvements in the output messages and
some more output in WaitOnLock(). I have used with success to trace a nasty
deadlock condition on pg_listener.

27 years agoFrom: Andrew Martin <martin@biochemistry.ucl.ac.uk>
Marc G. Fournier [Sat, 15 Mar 1997 01:11:54 +0000 (01:11 +0000)]
From: Andrew Martin <martin@biochemistry.ucl.ac.uk>

Just noticed that the psql man page is missing the -T option for specifying
HTML table options.

27 years agoDate/Time updates from Thomas...
Marc G. Fournier [Fri, 14 Mar 1997 23:34:16 +0000 (23:34 +0000)]
Date/Time updates from Thomas...

27 years agoDate/Time updates from Thomas...
Marc G. Fournier [Fri, 14 Mar 1997 23:21:12 +0000 (23:21 +0000)]
Date/Time updates from Thomas...

27 years ago> There are some minor fixes to the GEQO.
Marc G. Fournier [Fri, 14 Mar 1997 16:03:02 +0000 (16:03 +0000)]
> There are some minor fixes to the GEQO.
> Please apply them to the direcory "backend/optimizer/geqo".
> Two new files with different crossover techniques are included.
> Standard procedure is optimization by means of "geqo_erx.c"
> (Edge Recombination Crossover).

From: "Martin S. Utesch" <utesch@aut.tu-freiberg.de>

27 years agoLast of Dan's hidden tar balls :)
Marc G. Fournier [Fri, 14 Mar 1997 06:01:40 +0000 (06:01 +0000)]
Last of Dan's hidden tar balls :)

27 years agoMissed another tar file... :(
Marc G. Fournier [Fri, 14 Mar 1997 05:58:13 +0000 (05:58 +0000)]
Missed another tar file... :(

27 years agoMissing bits from Dan's patches...sorry :(
Marc G. Fournier [Fri, 14 Mar 1997 05:56:27 +0000 (05:56 +0000)]
Missing bits from Dan's patches...sorry :(

27 years agoFrom: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Wed, 12 Mar 1997 21:28:14 +0000 (21:28 +0000)]
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] timestamp type

OK, last one.  This patch adds an ANSI SQL 'timestamp' type.

27 years agoFrom: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Wed, 12 Mar 1997 21:23:16 +0000 (21:23 +0000)]
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] password authentication

This patch adds support for plaintext password authentication.  To use
it, you add a line like

host         all         0.0.0.0       0.0.0.0           password  pg_pwd.conf

to your pg_hba.conf, where 'pg_pwd.conf' is the name of a file containing
the usernames and password hashes in the format of the first two fields
of a Unix /etc/passwd file.  (Of course, you can use a specific database
name or IP instead.)

Then, to connect with a password through libpq, you use the PQconnectdb()
function, specifying the "password=" tag in the connect string and also
adding the tag "authtype=password".

I also added a command-line switch '-u' to psql that tells it to prompt
for a username and password and use password authentication.

27 years agoFrom: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Wed, 12 Mar 1997 21:13:19 +0000 (21:13 +0000)]
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] linux/alpha patches

These patches lay the groundwork for a Linux/Alpha port.  The port doesn't
actually work unless you tweak the linker to put all the pointers in the
first 32 bits of the address space, but it's at least a start.  It
implements the test-and-set instruction in Alpha assembly, and also fixes
a lot of pointer-to-integer conversions, which is probably good anyway.

27 years agoFrom: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Wed, 12 Mar 1997 21:00:17 +0000 (21:00 +0000)]
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] linux/alpha patches

These patches lay the groundwork for a Linux/Alpha port.  The port doesn't
actually work unless you tweak the linker to put all the pointers in the
first 32 bits of the address space, but it's at least a start.  It
implements the test-and-set instruction in Alpha assembly, and also fixes
a lot of pointer-to-integer conversions, which is probably good anyway.

27 years agoFrom: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Wed, 12 Mar 1997 20:51:33 +0000 (20:51 +0000)]
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] equal column and table name patch

This fixes a bug where selects fail when there is a column with the same
name as the table it's a part of.

27 years agoFrom: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Wed, 12 Mar 1997 20:48:48 +0000 (20:48 +0000)]
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] better access control error messages

This patch replaces the 'no such class or insufficient privilege' with
distinct error messages that tell you whether the table really doesn't
exist or whether access was denied.

27 years agoFrom: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Wed, 12 Mar 1997 20:44:57 +0000 (20:44 +0000)]
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] backend Makefile patch

This patch cleans up backend/Makefile a little bit, and prevents it from
relinking the backend binary when no changes have been made.

27 years agoFrom: Dan McGuirk <mcguirk@indirect.com>
Marc G. Fournier [Wed, 12 Mar 1997 20:41:14 +0000 (20:41 +0000)]
From: Dan McGuirk <mcguirk@indirect.com>
Subject: [HACKERS] abort failed transaction patch

This patch allows you to end a transaction that has failed on an error
using the 'ABORT' statement without generating another error message.
(By default you get an error unless you use 'END' to terminate the
transaction, which has already been aborted anyway.)

27 years agoAdd in the sunos4 portname to configure detection
Marc G. Fournier [Tue, 11 Mar 1997 02:12:17 +0000 (02:12 +0000)]
Add in the sunos4 portname to configure detection

27 years agoAdd missing paren.
Bruce Momjian [Mon, 10 Mar 1997 15:08:57 +0000 (15:08 +0000)]
Add missing paren.

27 years agoMassimo's Deadlock patches w/o the #ifdefs
Marc G. Fournier [Mon, 10 Mar 1997 00:18:09 +0000 (00:18 +0000)]
Massimo's Deadlock patches w/o the #ifdefs

27 years agoVacuum cleanups from Massimo.
Bruce Momjian [Sun, 9 Mar 1997 23:29:15 +0000 (23:29 +0000)]
Vacuum cleanups from Massimo.

27 years agoAdd prototypes for oracle-compat functions. Rename geo-*.c adt to geo_*.c
Bruce Momjian [Sun, 9 Mar 1997 20:41:02 +0000 (20:41 +0000)]
Add prototypes for oracle-compat functions.  Rename geo-*.c adt to geo_*.c

27 years agoFix vacuum crash Vadim found.
Bruce Momjian [Sun, 9 Mar 1997 07:12:36 +0000 (07:12 +0000)]
Fix vacuum crash Vadim found.

27 years agoReverse patch for Vadims problem.
Bruce Momjian [Fri, 7 Mar 1997 00:59:05 +0000 (00:59 +0000)]
Reverse patch for Vadims problem.

27 years agoAdd man page for oracle compatibility functions
Marc G. Fournier [Fri, 7 Mar 1997 00:47:41 +0000 (00:47 +0000)]
Add man page for oracle compatibility functions

By Edmund