Commit Graph

2853 Commits

Author SHA1 Message Date
Bruce Momjian edd3668895 Atttypmod cleanup. 1998-02-13 19:46:22 +00:00
Marc G. Fournier ce88b9b40b From: Jan Wieck <jwieck@debis.com>
just a little correction in the pltcl_guide.nr.

    Sometimes I changed the name of tuple arguments to numbers
    like the other args are. Otherwise it wasn't possible to
    create a function as

        CREATE FUNCTION f (EMP, EMP) ... LANGUAGE 'pltcl';

    The arguments are now accessed in the function as

        $1(name) vs. $2(name)
1998-02-13 17:18:25 +00:00
Marc G. Fournier 2a07e65dcd From: Zeugswetter Andreas SARZ <Andreas.Zeugswetter@telecom.at>
Only occurrs in
src/include/storage/s_lock.h:#if defined(__AIX)
src/include/utils/dt.h:#if defined(__AIX)
src/include/utils/nabstime.h:#if defined(__AIX)

Simply delete one underscore, only occurs once per file, so no patch.
1998-02-13 17:12:08 +00:00
Marc G. Fournier a04dcc9137 From: Jan Wieck <jwieck@debis.com>
Someone changed the parser to build a TypeName node on CREATE
    FUNCTION in any  case.  As  a  side  effect,  ALL!  functions
    created  got  the  proretset  attribute  to  true. Thus for a
    SELECT the parser wrapped an Iter node around  the  Expr  and
    since  singleton  functions  set  isDone  the Iter returns no
    tuple up.
1998-02-13 13:23:33 +00:00
Marc G. Fournier b6d5fce951 Add missing extern.h file 1998-02-13 13:15:23 +00:00
Marc G. Fournier b7c0d48423 Makefile.in needs to be configured to use PORTNAME variable 1998-02-13 13:15:12 +00:00
Marc G. Fournier 084e66a077 Remove interfaces/ecpg/{include,preproc}/Makefile.in from configure 1998-02-13 13:14:41 +00:00
Vadim B. Mikheev 6eeb3d9eac gram.y: ALL_SUBLINK type was returned for x Op (subquery).
parse_expr.c: only Op of bool type are supported currently...
1998-02-13 08:10:33 +00:00
Marc G. Fournier 64e7adb07b From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
Apart from this Makefile hack, all I've done is to make dynamically
loaded code modules fail properly (as was already done for __mips__,
although I think this is too loose: I believe NetBSD for the pmax can
do dynamic linking), and to add test-and-set lock handling.  As Bruce
suggested, this is done in a maximally efficient inlined way: I was
not aware that this code was so important, speed-wise.
1998-02-13 05:10:06 +00:00
Marc G. Fournier e3f2224664 Remove -m486 option, since it is platform specific...this should technically
be removed everywhere, but so far linux-elf is the only platform that is
being reported a problem with...
1998-02-13 04:57:23 +00:00
Vadim B. Mikheev 5d7923dd1c Subselects... 1998-02-13 03:46:56 +00:00
Vadim B. Mikheev 6fcf2d7cb3 New SubPlan node for subselects.
New PARAM_EXEC type.
1998-02-13 03:45:29 +00:00
Vadim B. Mikheev eab1471b2b EState->->es_param_exec_vals = NULL; in CreateExecutorState(). 1998-02-13 03:42:32 +00:00
Vadim B. Mikheev 7fab67a8ac Fix for EXISTS. 1998-02-13 03:41:23 +00:00
Vadim B. Mikheev e51c674c59 Support for subselects. 1998-02-13 03:40:23 +00:00
Vadim B. Mikheev 9184073324 Call union_planner() instead of planner(). 1998-02-13 03:39:26 +00:00
Vadim B. Mikheev 4a6e3a6a9f Old planner() becomes union_planner(); new planner() makes initialization
of some global variables to support subselects and calls union_planner().
Calls to SS_replace_correlation_vars() and SS_process_sublinks() in
query_planner() before planning.
Get rid of #ifdef INDEXSCAN_PATCH in createplan.c.
1998-02-13 03:37:04 +00:00
Vadim B. Mikheev a3f1c3673f Quite limited support for subselects in clausesel.c.
Get rid of #ifdef INDEXSCAN_PATCH in indxpath.c.
1998-02-13 03:29:39 +00:00
Vadim B. Mikheev dc892fd390 Support for subselects.
(Have to re-visit readfuncs.c)
1998-02-13 03:27:47 +00:00
Vadim B. Mikheev 1a105cefbd Support for subselects.
ExecReScan for nodeAgg, nodeHash, nodeHashjoin, nodeNestloop and nodeResult.
Fixed ExecReScan for nodeMaterial.
Get rid of #ifdef INDEXSCAN_PATCH.
Get rid of ExecMarkPos and ExecRestrPos in nodeNestloop.
1998-02-13 03:26:53 +00:00
Vadim B. Mikheev 13637df458 Support for subselects. 1998-02-13 03:21:30 +00:00
Marc G. Fournier 33c2da9725 From: Michael Meskes <meskes@topsystem.de>
Here's the ecpg patch for the local variables bug I reported earlier:
1998-02-12 14:02:10 +00:00
Marc G. Fournier 7d55b1c7f0 There, fixed 1998-02-12 12:38:12 +00:00
Marc G. Fournier ced5b1ff01 Screwed this up...fixing now 1998-02-12 12:37:49 +00:00
Marc G. Fournier d8b59b1d30 Clean up Makefiles - shouldn't require configure *.in Makefiles, as they should
pull their data/info from Makefile.global
1998-02-12 12:35:56 +00:00
Marc G. Fournier 7783c2b9ff Remove configure code from ecpg, as well as remove the 'for' loop from the
Makefile, as it isn't appropriate for GNUmake
1998-02-12 02:14:59 +00:00
Bruce Momjian 1e7fed7fd9 MemSet cleanup. 1998-02-12 01:50:01 +00:00
Bruce Momjian 1e3c5b0ab5 Memset cleanup 1998-02-11 21:45:40 +00:00
Bruce Momjian e166409033 Change to MemSet for Alpha. 1998-02-11 21:38:08 +00:00
Bruce Momjian 182c2057f2 Change int align. 1998-02-11 21:17:44 +00:00
Bruce Momjian 24cab6bd0d Goodbye register keyword. Compiler knows better. 1998-02-11 19:14:04 +00:00
Marc G. Fournier df10360d8e From: Michael Meskes <meskes@topsystem.de>
Cleanups for ecpg, as well as a missing patch so that its configured in
1998-02-11 15:30:00 +00:00
Marc G. Fournier 72aa1dabb9 From: Michael Meskes <meskes@topsystem.de>
Cleanups for ecpg, as well as a missing patch so that its configured in
1998-02-11 15:18:05 +00:00
Marc G. Fournier 755c2be9b4 From: Michael Meskes <meskes@topsystem.de>
Remove "temp" configure files
1998-02-11 14:44:02 +00:00
Marc G. Fournier 2784f7c81a From: Jan Wieck <jwieck@debis.com>
A few minutes ago I sent down the PL/Tcl  directory  to  this
    list.  Look at it and reuse anything that might help to build
    PL/perl.  I really hope that PL/perl and PL/Tcl appear in the
    6.3 distribution. I'll do whatever I can to make this happen.
1998-02-11 14:38:31 +00:00
Marc G. Fournier 957a6149e5 From: Jan Wieck <jwieck@debis.com>
A few minutes ago I sent down the PL/Tcl  directory  to  this
    list.  Look at it and reuse anything that might help to build
    PL/perl.  I really hope that PL/perl and PL/Tcl appear in the
    6.3 distribution. I'll do whatever I can to make this happen.
1998-02-11 14:14:18 +00:00
Marc G. Fournier a71a80b0f2 From: Jan Wieck <jwieck@debis.com>
A few minutes ago I sent down the PL/Tcl  directory  to  this
    list.  Look at it and reuse anything that might help to build
    PL/perl.  I really hope that PL/perl and PL/Tcl appear in the
    6.3 distribution. I'll do whatever I can to make this happen.
1998-02-11 14:08:01 +00:00
Thomas G. Lockhart 9d99dacd08 Update test for newly implemented "<=" operator. 1998-02-11 04:13:33 +00:00
Thomas G. Lockhart cad3c5d35b Try bumping to version two... 1998-02-11 04:11:19 +00:00
Thomas G. Lockhart 878b8d64c8 Define ROW and STATEMENT as parser tokens.
Use explicit tokens to decode CREATE TRIGGER clauses.
Allow ROW and STATEMENT as column identifiers.
Fix CAST syntax to require parens per SQL92 spec.
Define TypeId to allow correct translation of type names in CREATE FUNCTION
 and other statements. Need to do this without looking up defined type
 names because CREATE FUNCTION can specify undefined (new) types.
Define UserId to complete removal of "Id" generic entity.
Define xlateSqlFunc() to convert SQL92 CHARACTER_LENGTH() and CHAR_LENGTH()
 functions to calls to length().
Define func_name parser entity for contexts requiring a function name.
Have xlateSqlType() translate "float" to "float8".
1998-02-11 04:09:54 +00:00
Thomas G. Lockhart 5e9e8849c9 Automatically promote out of range integers to floats.
Throw elog(NOTICE) to flag promotion.
1998-02-11 03:56:08 +00:00
Thomas G. Lockhart 9e22f82562 Fix typos in SQL statement terminators. 1998-02-11 03:51:38 +00:00
Marc G. Fournier 1f4f6b22bc regression test based off of Solaris/Sparc v2.6 1998-02-10 17:42:54 +00:00
Marc G. Fournier 38201e21d0 Erk, the whole directory structure changed on us here... 1998-02-10 16:44:17 +00:00
Marc G. Fournier a8313f9671 Updated ECPG From: Michael Meskes <meskes@topsystem.de> 1998-02-10 16:37:01 +00:00
Bruce Momjian 0386a50f31 Pass around typmod as int16. 1998-02-10 16:04:38 +00:00
Marc G. Fournier 2a3c589c5a Clean up regression tests for SunOS (based on Solaris v2.6)
Clean up strings.out , removed func_get_detail from error message
1998-02-10 14:22:50 +00:00
Bruce Momjian 2c482cdbf2 Pass attypmod through to executor by adding to Var and Resdom. 1998-02-10 04:02:59 +00:00
Marc G. Fournier 2535fcde2a From: Peter T Mount <patches@maidast.demon.co.uk>
This patch fixes the following:

* Fixes minor bug found in DatabaseMetaData.getTables() where it doesn't
  handle default table types.
* It now reports an error if the client opens a database using
  properties, and either the user or password properties are missing. This
  should make the recent problem with Servlets easier to find.
* Commented out obsolete property in Driver.getPropertyInfo()
1998-02-09 03:22:41 +00:00
Marc G. Fournier 83e637a99a This was a new class that was introduced last weekend. I'm attaching the
source here. It goes in the src/interfaces/jdbc/postgresql/util directory

Marc, can you make sure this is in the distribution, Thanks
1998-02-09 02:16:55 +00:00
Bruce Momjian b33f080c26 Atttypmod cleanups. 1998-02-07 21:41:52 +00:00
Bruce Momjian 65faaf3046 atttypmod now -1. 1998-02-07 06:11:56 +00:00
Bruce Momjian ec9d5d71ec Update now that attcacheoff initial value is -1 always. 1998-02-06 20:18:01 +00:00
Bruce Momjian 6009d70eab Set attcacheoff value to -1 for all tables. 1998-02-06 19:18:06 +00:00
Bruce Momjian c2dd3c4fef Fix for \d on long table names. 1998-02-06 17:46:31 +00:00
Bruce Momjian b20fd6c42d FIx hasSubLinks for Vadim. 1998-02-06 16:46:29 +00:00
Marc G. Fournier 33c34920ff From: Michael Meskes <meskes@topsystem.de>
I have implemented a better user interface (well part of) so you can use it
as expected. As usual there are some bug fixes. :-)
1998-02-06 13:32:34 +00:00
Bruce Momjian fe0154ba87 FIx for varchar(), char() and INSERT .. SELECT. 1998-02-05 22:48:44 +00:00
Bruce Momjian 4eb1ee294d Vadim fix for vacuum analyze. 1998-02-05 21:19:21 +00:00
Bruce Momjian 5e6de5d961 FIx for atttypmod on system tables. 1998-02-05 19:50:55 +00:00
Bruce Momjian 9188175ead FIx for atttypmod in system catalogs. 1998-02-05 19:02:44 +00:00
Bruce Momjian e3f2eb1f39 Fix for varchar functions, and indextyple j-1 fix. 1998-02-05 17:22:41 +00:00
Marc G. Fournier 82034103ed From: Michael Meskes <meskes@topsystem.de>
Well this is not really a patch. But I mananged to get Linus' old Postgres95
precompiler to compile and work with PostgreSQL. The next step would be to
collect bug/missing feature reports and to put it into the distribution so
that it is made with the standard make procedure.

Warning! So far it is not tested much and it does not install correctly. But
I was able to create a small binary with it.
1998-02-05 15:46:43 +00:00
Marc G. Fournier c10908e0d2 Symptom:
select  from  a  table  with  attrs  (a  int, b char(20))
        crashed in bpcharout() (palloc of -1 bytes). But a  table
        with attrs (a int, b varchar(20)) worked.

From: Jan Wieck <jwieck@debis.com>
1998-02-05 15:08:49 +00:00
Marc G. Fournier 692cfec8aa init_fixup_addr() function removed, so port-protos.h no longer required 1998-02-05 04:21:56 +00:00
Marc G. Fournier 7b6cbd53f7 func_error() changed so that if caller is passed with NULL value, its
output at least doesn't appear that its missing something.

wasn't particularly confident with removing 'caller' altogether :(
1998-02-05 04:08:44 +00:00
Marc G. Fournier af7a2b3243 Build in a 'dummy' tas file...nothing in it, just used for the link process
of configure
1998-02-05 04:00:55 +00:00
Bruce Momjian 0f582cee86 char() cleanup and more cacheoff improvements. 1998-02-05 03:47:08 +00:00
Marc G. Fournier 48ad446c04 Fix up this so that it also doesn't use a caller variable... 1998-02-05 03:40:10 +00:00
Marc G. Fournier 03febc634b Clean up func_error() function completely removing caller variable as
"more info then user requires"
1998-02-05 03:35:48 +00:00
Marc G. Fournier d85a5420f7 Port specific, compiler specfied for SGI/Irix5
From: Andrew Martin <martin@biochemistry.ucl.ac.uk>
1998-02-05 03:31:01 +00:00
Bruce Momjian 1637684af4 Cleanup getattr code. Make CHAR() use attcacheoff. 1998-02-04 21:32:12 +00:00
Marc G. Fournier 60f54d629d Try this fix for the tas.s code... 1998-02-04 13:19:32 +00:00
Thomas G. Lockhart c1dcd59c48 Allow most expressions in BETWEEN clause. Allow all expressions if
surrounded by parentheses (but not all are meaningful).
Remove unused keywords ACL, APPEND, MERGE.
Requires a "make clean" to recompile all code since keyword numeric
 assignments have changed with keyword removal.
1998-02-04 06:11:48 +00:00
Bruce Momjian bced35f1e1 Vacuum parameter fix. 1998-02-03 21:57:27 +00:00
Marc G. Fournier 73867f773e Strange, this should be required, but initialize need_tas to no 1998-02-03 20:30:43 +00:00
Marc G. Fournier cadda10a14 I tried to match up the if/test stuff...fixed now, I think 1998-02-03 19:40:15 +00:00
Bruce Momjian 00f325d510 Subselects with =, >, etc.
Cleanup for vacuum help, manual page, and error message
1998-02-03 19:27:30 +00:00
Marc G. Fournier f00a9e3e9f various i386_solaris cleanups that should fix sparc_solaris and hpux 1998-02-03 18:06:37 +00:00
Marc G. Fournier b17bf38ccc Learning a little more about autoconf each day...
Fix inclusion of 'tas.s' for various ports
1998-02-03 16:58:46 +00:00
Thomas G. Lockhart d6b5d8506d Supress call to tzset() in reset_timezone() if a new time zone has never
been set in the session.
General cleanup of timezone support code.
1998-02-03 16:06:49 +00:00
Thomas G. Lockhart a90b6a4464 Remove unused keyword CHANGE. 1998-02-03 16:04:05 +00:00
Thomas G. Lockhart 93d80d3359 Define boolean functions and operators for lseg <, <=, <>, >=, >.
Define functions and operators for closest point to lseg on box,
 to line on lseg, to lseg on lseg.
Define function and operator for length of lseg.
Change length operator from '??' to '@-@'
 (currently defined for path and lseg).
1998-02-03 16:01:59 +00:00
Thomas G. Lockhart 3f52d1705a Define boolean functions for lseg <, <=, <>, >=, >
Define close_ls(), close_lseg(), lseg_length().
Write real code for close_sb(), close_pb(), inter_sb(), inter_lb().
Repair lseg_perp() which determines if two lsegs are perpendicular.
Repair lseg_dt() distance between two lsegs.
Note: close_sl() is clearly broken  but will repair later
 (calculating point on lseg rather than point on line).
1998-02-03 15:55:58 +00:00
Marc G. Fournier 50436b7214 Use proper symbol for hpux 1998-02-03 12:42:52 +00:00
Marc G. Fournier 67c4b05f41 Just another dummy file 1998-02-03 12:41:24 +00:00
Marc G. Fournier feb5a2cfd6 Fix for various aix related 'mis-defines'
From: Darren King <darrenk@insightdist.com>
1998-02-03 02:09:08 +00:00
Marc G. Fournier ea514d2e6a Fix for missing tas.s under sparc_solaris
Reported by:  Shiby Thomas <sthomas@cise.ufl.edu>
1998-02-03 02:07:15 +00:00
Bruce Momjian c18ed2f5a7 Parser cleanup for expr and subqueries. 1998-02-03 01:53:24 +00:00
Marc G. Fournier eb348bf41c Clean up the alpha port, remove the backend/port/alpha subdirectory
structure, and move the init_address_fixup() code directly into
backend/main/main.c with appropriate #ifdefs around it...
1998-02-03 01:25:47 +00:00
Marc G. Fournier fe3737f6f9 Fixes for linux-elf-sparc related template file
From: "Thomas A. Szybist" <szybist@boxhill.com>
1998-02-03 01:00:50 +00:00
Marc G. Fournier 2bfc73f55e From: teunis <teunis@mauve.computersupportcentre.com>
Slight cleanups for glibc2.0
1998-02-03 00:57:42 +00:00
Marc G. Fournier bfd85c8ee3 Add an irix5.c dummy file for irix5 port 1998-02-02 15:24:47 +00:00
Marc G. Fournier 4e9dd95296 From: Peter T Mount <patches@maidast.demon.co.uk>
[This is a repost - it supercedes the previous one. It fixes the patch so
it doesn't bread aix port, plus there's a file missing out of the
original post because difforig doesn't pick up new files. It's now
attached. peter]

This patch brings the JDBC driver up to the current protocol spec.
Basically, the backend now tells the driver what authentication scheme to
use.

The patch also fixes a performance problem with large objects. In the
buffer manager, each fastpath call was sending multiple Notifications to
the backend (sometimes more data in the form of notifications were being
sent than blob data!).
1998-02-02 13:17:01 +00:00
Marc G. Fournier 67c92f423a Fix up the alpha port/dynloader for configure 1998-02-02 03:49:11 +00:00
Marc G. Fournier 68c6ddbe8f Fix for ltoa() problem pointed out by Stan Brown <stanb@awod.com> 1998-02-02 03:11:37 +00:00
Marc G. Fournier 7264c8226e set "caller" value in parse_func.h to func_get_detail instead of just "" 1998-02-02 02:12:34 +00:00
Marc G. Fournier ff88f7db9d Current output for FreeBSD (2/1/98) 1998-02-02 01:48:25 +00:00
Bruce Momjian 244c4a180f No datedebug printing of date debug is not defined. 1998-02-02 01:28:12 +00:00
Marc G. Fournier a86e06cb9b Fix HP/ux port for tas.s 1998-02-02 00:13:41 +00:00
Marc G. Fournier 40b75ef5d0 Fixes:
dynloader.c:25: port-protos.h: No such file or directory

In HPUX port
1998-02-02 00:10:10 +00:00
Marc G. Fournier dd26bef4ef #if aix changed to #if HAVE_SYS_SELECT_H 1998-02-02 00:05:03 +00:00
Marc G. Fournier e6e364088a Move all the isinf() stuff from float.c to isinf.c, and build it according to
configure vs port specific #ifdef's...
1998-02-02 00:04:08 +00:00
Bruce Momjian 79f99a3888 Fix for psort. fixes regression tests. 1998-02-01 22:20:47 +00:00
Bruce Momjian 6159ba3ab1 AIX patch from Darren King and Univel patch from Billy Allie, mostly
related to grammar and parser issues, with one postmaster fix.
1998-02-01 19:43:54 +00:00
Marc G. Fournier 44030ef229 minor change so that it outputs to regression.diffs ... 1998-02-01 11:46:10 +00:00
Marc G. Fournier ca5eefb645 Make changes so that when the diff is done between 'expected' and 'results',
if an operating specific expected file exists, use that for the comparison.
This allows for "legit" differences between results, like the "Result too
large" message vs "Math result not representable" ...

Also, have the failed diffs get output to regression.diffs so that its easy to
view those tests that failed
1998-02-01 11:43:17 +00:00
Marc G. Fournier 9fd18a6785 Missed adding new univel files and removing univel subdirectory 1998-02-01 07:46:43 +00:00
Marc G. Fournier 6e9558e639 From: "Billy G. Allie" <Bill.Allie@mug.org>
The following patches will bring the UNIVEL port in line with the new porting
model used in postgreSQL 6.3
1998-02-01 07:44:00 +00:00
Bruce Momjian d8ddb10f51 Reduce size of inlining. 1998-02-01 05:38:40 +00:00
Marc G. Fournier 1af818b8bf 1. "#ifdef 0" is bad C. ifdef is for checking a macro and 0 is
an illegal macro name.  Correct syntax is "#if 0".  This is in...

From: Darren King <darrenk@insightdist.com>
1998-02-01 00:02:59 +00:00
Marc G. Fournier 7a33578436 From: Phil Thompson <phil@river-bank.demon.co.uk>
I haven't had final confirmation from Peter yet, but the attached patch
needs to be applied for the Beta otherwise password and crypt
authentication just won't work.

It puts back the loop in libpq and also fixes a couple of problems with
maintaining compatability with pre-6.3 drivers.
1998-01-31 21:27:28 +00:00
Marc G. Fournier 93211b9170 From: Phil Thompson <phil@river-bank.demon.co.uk>
I haven't had final confirmation from Peter yet, but the attached patch
needs to be applied for the Beta otherwise password and crypt
authentication just won't work.

It puts back the loop in libpq and also fixes a couple of problems with
maintaining compatability with pre-6.3 drivers.
1998-01-31 20:14:15 +00:00
Bruce Momjian f1f01a70f9 fmgr_faddr cleanup 1998-01-31 05:54:57 +00:00
Bruce Momjian 32305d8c51 fmgr_faddr cleanup 1998-01-31 05:31:03 +00:00
Bruce Momjian 63d5fd177a Inline fmgr_faddr() for speed. 1998-01-31 05:22:43 +00:00
Bruce Momjian 726c3854cb Inline fastgetattr and others so data access does not use function
calls.
1998-01-31 04:39:26 +00:00
Marc G. Fournier 2df6bba3ca From: PostgreSQL DataBase <postgres@scuba.pcpipeline.com>
This again fixes the problem
with the default permissions for PUBLIC and the preventing of
statements like "GRANT null on test to test_user;".
1998-01-30 15:03:35 +00:00
Marc G. Fournier b7ed95ae15 don't forget to 'template' i386_solaris 1998-01-29 17:16:02 +00:00
Marc G. Fournier 8e789e8ef1 From: Phil Thompson <phil@river-bank.demon.co.uk>
Attached is the patch to fix the warning messages from my code.  I also
fixed one which wasn't my code.  Apart from the usual warnings about the
bison/yacc generated code I only have one other warning message.  This
is in gramm.y around line 2234.  I wasn't sure of the fix.

I've also replaced all the calls to free() in gramm.y to calls to
pfree().  Without these I was getting backend crashes with GRANT.  This
might already have been fixed.
1998-01-29 03:24:36 +00:00
Marc G. Fournier 2780576e36 From: "Pedro J. Lobo" <pjlobo@euitt.upm.es>
I've patched pg_dump.c and createdb to add support for password
authentication, using the '-u' switch as in psql. I have updated also the
man pages.
1998-01-29 02:26:47 +00:00
Bruce Momjian 0427469f57 psql \df cleanup and lock manual page cleanup. 1998-01-28 20:44:42 +00:00
Marc G. Fournier 7fc4c76edb Someone wants to try a Cynus port.... 1998-01-28 12:45:44 +00:00
Bruce Momjian 0ff43badd5 Lock cleanup 1998-01-28 06:52:58 +00:00
Marc G. Fournier 8a02b22e89 From: Peter T Mount <patches@maidast.demon.co.uk>
This has a problem when using any authentication other than trust or
ident.

Anything using libpq will hang, because the client will go into a loop
while connecting. The following patch simply comments out two lines (a do
and a while), removing the loop. Going through the new scheme, I can't see
why this do..while loop is in there.
1998-01-28 03:42:27 +00:00
Bruce Momjian 8abd424369 More deadlock code to check for escallation locks.
offsetof() addition to local socket size.
1998-01-28 02:29:40 +00:00
Bruce Momjian 54399bb2f9 dummyret cleanup 1998-01-27 15:57:41 +00:00
Bruce Momjian b65847b84e Reversed out group by patch. 1998-01-27 15:41:32 +00:00
Bruce Momjian b4564a98fa Deadlock ceallnup.
(void) change for aix and hp compilers.

protocol cleanup.
1998-01-27 15:35:30 +00:00
Marc G. Fournier f49d41353d This should fix Stan's USE_POSIX_SIGNALS problem as well 1998-01-27 05:04:35 +00:00
Marc G. Fournier 9efbe8d761 From what I can tell, -DNOFIXADE does absolutely nothing under HP/ux 1998-01-27 05:03:15 +00:00
Marc G. Fournier 7aeda9d667 add CC:cc so that configure uses cc on non-gcc machine
From: Stan Brown <stanb@awod.com>
1998-01-27 05:02:11 +00:00
Bruce Momjian 0519a96546 Fix local domain structure size computation. 1998-01-27 04:08:28 +00:00
Marc G. Fournier c4213aede1 From: Phil Thompson <phil@river-bank.demon.co.uk>
Cleanup patches for previous protocol changes patch
1998-01-27 03:25:14 +00:00
Bruce Momjian 7c3dc8f772 Protocol cleanup from Phil. 1998-01-27 03:11:46 +00:00
Bruce Momjian 862927f443 Real deadlock detection. 1998-01-27 03:00:43 +00:00
Marc G. Fournier 0e91367109 Try this to fix HP/UX port compile 1998-01-26 02:48:36 +00:00
Marc G. Fournier 90fb23e692 #include <sys/types.h> required for u_long in <netinet/in.h> 1998-01-26 01:55:05 +00:00
Marc G. Fournier 16a20c53dc #include <sys/types.h> required for u_long 1998-01-26 01:49:19 +00:00
Marc G. Fournier d5bbe2aca5 From: Phil Thompson <phil@river-bank.demon.co.uk>
I've completed the patch to fix the protocol and authentication issues I
was discussing a couple of weeks ago.  The particular changes are:

- the protocol has a version number
- network byte order is used throughout
- the pg_hba.conf file is used to specify what method is used to
  authenticate a frontend (either password, ident, trust, reject, krb4
  or krb5)
- support for multiplexed backends is removed
- appropriate changes to man pages
- the -a switch to many programs to specify an authentication service
  no longer has any effect
- the libpq.so version number has changed to 1.1

The new backend still supports the old protocol so old interfaces won't
break.
1998-01-26 01:42:53 +00:00
Bruce Momjian 91d983aa11 cash_words_out fix 1998-01-26 01:01:37 +00:00
Marc G. Fournier 20e11f2909 From: Darren King <darrenk@insightdist.com>
I have always been under the impression that NULL is not equal to
NULL and that NULL is not equal to anything else either.  If this
is the case, then this patch is correct.

If NULL _is_ equal to NULL, then I think there are other problems
in the Group By logic.
1998-01-26 00:21:02 +00:00
Bruce Momjian d57753efd4 Add cash_words_out and fix \df width. 1998-01-25 20:23:40 +00:00
Marc G. Fournier 594aae99ae From: todd brandys <brandys@eng3.hep.uiuc.edu>
o  The manual (really text) pages for create/alter/drop user.
1998-01-25 07:42:02 +00:00
Marc G. Fournier 9f8d3b668b this is to help someone that wants an AUX port get started... 1998-01-25 07:08:31 +00:00
Marc G. Fournier b611fefa0f Patch to document the /etc/psqlrc / ~/.psqlrc config files
From: <Dr. Andrew C.R. Martin> martin@biochem.ucl.ac.uk
1998-01-25 06:12:52 +00:00
Marc G. Fournier 753f720cb8 Merge in D'Arcy Cain's python interface (PyGreSQL 2.0) 1998-01-25 06:09:40 +00:00
Marc G. Fournier 98018c4b93 From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Small patch for sparc solaris/tas()
1998-01-25 05:23:59 +00:00
Marc G. Fournier c58fb21bd4 From: Jeroen van Vianen <jeroenv@design.nl>
This patch solves the problem with multiple order by columns, with the
first one having NULL values.
1998-01-25 05:18:34 +00:00
Bruce Momjian c16ebb0f67 getpid/pid cleanup 1998-01-25 05:15:15 +00:00
Marc G. Fournier fc75484550 Somehow the 'comment' here got messed up 1998-01-25 05:04:21 +00:00
Marc G. Fournier 25a8c053e3 From: Tom I Helbekkmo <tih@Hamartun.Priv.NO>
Hi -- a couple of small items concerning the January 23rd snapshot:
the inclusion of the Kerberos stuff in one Makefile, a "leading tab"
cleanup in another, and a fix for a typo in the configure script.
1998-01-25 04:14:36 +00:00
Marc G. Fournier 81dc201921 Wish ppl would make up their mnd :) 1998-01-25 04:12:28 +00:00
Marc G. Fournier 47ad8d1cf5 OOps...missed the second patch of patch two that uses pfree() instead of
free()

From: James Hughes <jamesh@interpath.com>
1998-01-25 04:10:32 +00:00
Marc G. Fournier 151a1238d2 This is the second of two patches required to fix the the grant and
revoke statements.

From: James Hughes <jamesh@interpath.com>
1998-01-25 04:08:54 +00:00
Marc G. Fournier af32f4d5d3 Patch against src/backend/nodes/outfuncs.c.orig fixes backend crashes
when creating unique indexes.

From: James Hughes <jamesh@interpath.com>
1998-01-25 04:07:52 +00:00
Marc G. Fournier 49459d85a9 This patch fixes one of two problems with grant/revoke statements on the
Linux platform.

From: James Hughes <jamesh@interpath.com>
1998-01-25 04:07:00 +00:00
Bruce Momjian 7229513943 Fix prototypes so they don't look like function definitions. 1998-01-24 22:50:57 +00:00
Marc G. Fournier 27317a0d7c More up to date scan.c 1998-01-24 19:40:56 +00:00
Bruce Momjian 0e8ac82c63 Fix a variety of locking problems like newer lock waiters getting
lock before older waiters, and having readlock people not share
locks if a writer is waiting for a lock, and waiting writers not
getting priority over waiting readers.
1998-01-23 22:16:48 +00:00
Marc G. Fournier 1de8926bbe LOCK_LEVEL is defined in an i386_solaris system file, causing the compile
to break.  renaming to PG_LOCK_LEVEL
1998-01-23 19:53:44 +00:00
Marc G. Fournier b34c8ec3ec From: James Hughes <jamesh@interpath.com>
This is a patch to fix crashes in psql when executing queries from
an external file. The code also adds error checking to verify that
memory for "query" was allocated. The conditional for the block of
code was changed from "query == NULL" to "query_alloced == false".

The conditional, "query == NULL", was never true. This prevented
the memory being allocated for "query". A few lines later, an attempt
to write to an un-allocated memory area generated a SIGSEGV causing
the frontend to crash.
1998-01-23 19:22:24 +00:00
Marc G. Fournier b8476a09fe From: Andrew Martin <martin@biochemistry.ucl.ac.uk>
psql .psqlrc file startup(Andrew)
1998-01-23 19:21:11 +00:00
Marc G. Fournier 33de29fc45 Minor cleanups for i386_solaris port 1998-01-23 19:13:22 +00:00
Marc G. Fournier e697082f00 A dummy file so that configure under solaris works 1998-01-23 18:58:00 +00:00
Bruce Momjian 661bb38812 Cleanup deadlock message. 1998-01-23 06:01:36 +00:00
Marc G. Fournier c487962dd7 Fixes a free() problem under FreeBSD
Fixed pointed out by: jwieck@debis.com (Jan Wieck)
1998-01-23 02:31:18 +00:00
Bruce Momjian 7015dfef4b Add LOCK command as DELETE FROM ... WHERE false. 1998-01-22 23:05:18 +00:00
Bruce Momjian 0fd8d60185 Allow \z to show sequences. 1998-01-22 18:50:22 +00:00
Bruce Momjian ef06ec61e6 Small varlena cleanup. 1998-01-21 23:42:15 +00:00
Bruce Momjian 0f413d2dc2 Make subqueries rewrite properly. 1998-01-21 04:24:46 +00:00
Bruce Momjian 7e46348e62 FIx for regression-test found bug. 1998-01-20 22:55:25 +00:00
Bruce Momjian 7f31669bea Add Var.varlevelup to code. More parser cleanup. 1998-01-20 22:12:17 +00:00
Bruce Momjian 412a5e6539 Parser cleanup.
Add lock to i386 asm.
1998-01-20 05:05:08 +00:00
Marc G. Fournier 8700377384 Start an openbsd port 1998-01-20 03:11:11 +00:00
Bruce Momjian 1316113ea3 Fix problem with nodes handling. 1998-01-19 18:11:10 +00:00
Bruce Momjian 3d24e75176 Added code so SubLinks make it to optimizer. 1998-01-19 05:48:55 +00:00
Bruce Momjian 588867bd7b Create SubLink nodes in parser for Vadim. 1998-01-19 05:06:41 +00:00
Bruce Momjian 691dc282f8 Fix for SELECT INTO TABLE for varchar(). 1998-01-19 02:37:51 +00:00
Marc G. Fournier 8169769ee5 From: "Michael J. Maravillo" <mmj@philonline.com>
This patch makes it possible to do a "real" make distclean (back to its
fresh state) on the distribution after compilation, regression testing,
etc.
1998-01-17 23:39:35 +00:00
Marc G. Fournier 4aa861cabb From: "Michael J. Maravillo" <mmj@philonline.com>
Also, I think the existence of pgsql/src/bin/initlocation/initlocation
isn't necessary as it's generated by Makefile from initlocation.sh.
1998-01-17 23:36:44 +00:00
Marc G. Fournier 2a29325cec Must commit configure changes after patch to configure.in 1998-01-17 23:35:24 +00:00
Marc G. Fournier 36c1c94bca From: "Billy G. Allie" <Bill.Allie@mug.org>
The attached patches will allow postgreSQL to compile successfully on SCO
UNIXWARE 2.1.x.  The patches fix the following problems:

1.  Configure did not properly recognize the UNIXWARE system as needing the
    univel port.  It used the sys4 port.

2.  Configure did not properly process the CC flag in the template file.

3.  There was no working test and set locking implementation for the native
    UNIXWARE compiler.

4.  The test and set locking used for Intel X86 that was selected by defining
    NEED_I386_TAS_ASM could fail in a multi-processor environment.

5.  The makefiles for libpq and libpgtcl did not make a shared library for
    the univel port.
1998-01-17 23:33:58 +00:00
Marc G. Fournier 98c7cb11de From: Jan Wilhelm <Jan_Wilhelm@Physik.TU-Muenchen.DE>
a) psql dumps core when using -a password and PGUSER is set but PGPASSWORD
   not set.
1998-01-17 23:17:46 +00:00
Bruce Momjian 53622d66d2 Gram.y cleanup. 1998-01-17 05:01:34 +00:00
Bruce Momjian b37bc65f44 Creates the SubLink structure, and the Query->hasSubLink field,
with supporting code.

Creates SubLink node in gram.y.

psql.c patch for newatttypmod field.
1998-01-17 04:53:46 +00:00
Bruce Momjian c65ea0e040 New pg_attribute.atttypmod for type-specific information like
varchar length.

Cleans up code so attlen is always length.

Removed varchar() hack added earlier.

Will fix bug in selecting varchar() fields, and varchar() can be
variable length.
1998-01-16 23:21:07 +00:00
Bruce Momjian d7427e4802 Temporary varchar patch. 1998-01-16 05:03:45 +00:00
Bruce Momjian 41a4f64dcf Fix for aggreg problem and fmgr.c compile problems. 1998-01-15 22:31:33 +00:00
Marc G. Fournier d876c25803 Fix:
nodeAgg.c: WARN -> NOTICE for elog
parse_oper.c: was created after patch for fmgr_info, so function call wrong
scan.c: regenerated for i386_solaris using flex 2.5.4
gethostname.c: required prototype for gethostname() function
config.h.in: create prototype for isinfo() function

isinf.c: "fake" isinf() under i386_solaris using fpclass() call...
1998-01-15 20:54:52 +00:00
PostgreSQL Daemon baef78d96b Thank god for searchable mail archives.
Patch by: wieck@sapserv.debis.de (Jan Wieck)

   One  of  the design rules of PostgreSQL is extensibility. And
   to follow this rule means (at least for me) that there should
   not  only  be a builtin PL.  Instead I would prefer a defined
   interface for PL implemetations.
1998-01-15 19:46:37 +00:00
Bruce Momjian 763ff8aef8 Remove Query->qry_aggs and qry_numaggs and replace with Query->hasAggs.
Pass List* of Aggregs into executor, and create needed array there.
No longer need to double-processs Aggregs with second copy in Query.

Fix crash when doing:

	select sum(x+1) from test where 1 > 0;
1998-01-15 19:00:16 +00:00
Bruce Momjian f22d8e6668 Function cleanupo for List* when it should be Node *. 1998-01-14 19:55:53 +00:00
Bruce Momjian cb3ce64f2e Cleanup of prototypes. FIx for PQtrace start/stop several times. 1998-01-14 15:48:51 +00:00
Marc G. Fournier d8972c62b4 this should pretty much clean up the i386_solaris port, with regression
tests running "as expected"...
1998-01-13 20:13:19 +00:00
Marc G. Fournier 8adc838ff6 Various cleanups for the i386_solaris environment 1998-01-13 19:28:39 +00:00
Marc G. Fournier 434165295a isinf() doesn't exist under i386_solaris, so code it such that
it is (!isnan() && !finite()) instead
1998-01-13 19:22:29 +00:00
Marc G. Fournier 06356b8978 Oops, should be 'tas.o', not 'tas.s' 1998-01-13 19:04:39 +00:00
Marc G. Fournier 3a48ee4a0f MIssed a semi-colon in AC_LINK_FILES for i386_solaris port... 1998-01-13 15:53:02 +00:00
Marc G. Fournier 80b6206c5a Further clean up "auto-configuration" for ports 1998-01-13 15:31:24 +00:00