163 Commits

Author SHA1 Message Date
502a6531b3 This allows GROUP BY to use column aliases, and ORDER and GROUP BY can
use column numbers, like ANSI.

Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
1996-12-22 03:23:35 +00:00
79729c0e5e Add comments defining "typelem" column of pg_type. 1996-12-09 01:23:51 +00:00
9005a38bdb Change portname "sparc" to "sunos4" and change some portname dependencies to
feature dependencies.  Thanks Kurt J. Lidl.
1996-12-04 03:06:33 +00:00
514d69bdbf Remove #if defined(bsdi) define SIGJMP_BUF, per Kurt Lidl. 1996-12-03 00:11:07 +00:00
63df35e249 This patch changes quite a few instances of references of Oid's
as ints and longs.  Touches on quite a few function args as
well.  Most other files look ok as far as Oids go...still checking
though...

Since Oids are type'd as unsigned ints, they should prolly be used
with the %ud format string in elog and sprintf messages.  Not sure
what kind of strangeness that could produce.

Darren King
1996-11-30 18:07:02 +00:00
a962c6128f vrl_min_tlen added to VRelListData. 1996-11-29 10:29:45 +00:00
c9ec45062a Remove unused define's. 1996-11-27 13:48:58 +00:00
9c0afeabb7 More stuff to make it compile on various ports. 1996-11-27 08:16:44 +00:00
a38365e0eb New structures for new vacuum. 1996-11-27 07:35:06 +00:00
948720ee94 New mdtruncate() & smgrtruncate() funcs. 1996-11-27 07:33:42 +00:00
b41aa3903c TransactionIdIsInProgress moved to shmem.c 1996-11-27 07:32:10 +00:00
93f722536f Whoops, redo Ultrix patch so the other ports still compile. 1996-11-26 07:39:11 +00:00
46d58fba33 Make it compile on Ultrix. Thanks Erik Bertelson. 1996-11-26 03:20:35 +00:00
d3f9d6ad4f Move include of signal.h inside pqsignal.h so it's always where it's needed. 1996-11-24 04:07:17 +00:00
4a820de1f2 Include some macros that used to be -D options in Makefile.global. 1996-11-18 02:27:27 +00:00
b3ce105b31 Add prototype for new datetime functions. 1996-11-16 04:59:10 +00:00
8abc490181 Features added:
* Wrote max(date) and min(date) aggregates
* Wrote operator "-" for date; date - date yields number of days
  difference
* Wrote operator+(date,int) and operator-(date,int); the int is the
  number of days.  Each operator returns a new date.


By: Tom Tromey <tromey@creche.cygnus.com>
1996-11-14 21:39:14 +00:00
fb3b9d7661 Fix a comment that wasn't commente'd out
Pointed out by: Erik Bertelsen <erik@sockdev.uni-c.dk>
1996-11-14 20:06:39 +00:00
f64b840387 Remove most compile-time options, add a few runtime options to make up for it.
In particular, no more compiled-in default for PGDATA or LIBDIR.  Commands
that need them need either invocation options or environment variables.
PGPORT default is hardcoded as 5432, but overrideable with options or
environment variables.
1996-11-14 10:25:54 +00:00
200d4a4ec3 Include stdlib.h to gives its NULL, etc. definitions precedence over ours. 1996-11-14 06:06:39 +00:00
07a65b2255 Commit of a *MAJOR* patch from Dan McGuirk <djm@indirect.com>
Changes:

        * Unique index capability works using the syntax 'create unique
          index'.

        * Duplicate OID's in the system tables are removed.  I put
          little scripts called 'duplicate_oids' and 'find_oid' in
          include/catalog that help to find and remove duplicate OID's.
          I also moved 'unused_oids' from backend/catalog to
          include/catalog, since it has to be in the same directory
          as the include files in order to work.

        * The backend tries converting the name of a function or aggregate
          to all lowercase if the original name given doesn't work (mostly
          for compatibility with ODBC).

        * You can 'SELECT NULL' to your heart's content.

        * I put my _bt_updateitem fix in instead, which uses
          _bt_insertonpg so that even if the new key is so big that
          the page has to be split, everything still works.

        * All literal references to system catalog OID's have been
          replaced with references to define'd constants from the catalog
          header files.

        * I added a couple of node copy functions.  I think this was a
          preliminary attempt to get rules to work.
1996-11-13 20:56:15 +00:00
17befd6c69 Use new utils/version.c instead of backend/utils/init/magic.c. 1996-11-12 06:47:10 +00:00
b0961b3974 Goes with the recently added src/utils/version.c, will replace some stuff in
miscadmin.h.
1996-11-11 14:24:38 +00:00
aaeef4d17d All external function definitions now have prototypes that are checked. 1996-11-10 03:06:38 +00:00
bf5cbbf789 Quiet compiler warnings. 1996-11-10 02:27:15 +00:00
5d9e25c5ff Add USE_POSIX_TIME, HAVE_TZSET for Linux so backend compiles. 1996-11-10 00:50:54 +00:00
1d0e308395 Added new include file. 1996-11-09 05:48:28 +00:00
757b829ea8 A few more sparc_solaris cleanups from keith parks 1996-11-09 01:48:32 +00:00
c9c0e111b8 More compile cleanups 1996-11-08 20:46:33 +00:00
cecf081aba Change includes from "" to <> 1996-11-08 06:43:28 +00:00
4b2b8592a0 Compile and warning cleanup 1996-11-08 06:02:30 +00:00
026387013e Secondly, small problem when trying to create a MAX/MIN aggregate in 1.09.
>From the create_aggregate man page...

"The arguments to state-transition-function-1 must be
(stype1,basetype), and its return value must be stype1."

create aggregate MIN (sfunc1 = int2smaller,
                      basetype = int2,
                      stype1 = int2);

will fail becase int2smaller and int2larger are in pg_proc
as returning an int4.  Can't happen since both args have to
be int2.

From: Darren King <aixssd!ceodev!darrenk@abs.net>
1996-11-08 01:08:37 +00:00
b38d565fc3 D'Arcy's recent cleanups 1996-11-08 00:46:14 +00:00
1d0dd471fa Okay...this pretty much cleans out the include files.
I'm able to get through a 'make' of the backend with no errors except
the occasional 'might not be initialized error', which is nothing major,
just annoying.

Have a few patches from D'Arcy to incorporate, but am waiting until I can
get a clean compile first, which I'm hoping to have before bed, or sometime
tomorrow.
1996-11-06 10:31:02 +00:00
b49d41884f Add prototype for: int DebugFileOpen() 1996-11-06 10:15:25 +00:00
9f5eac1f97 ...same... 1996-11-06 09:56:47 +00:00
be9197320a One by one, file by file 1996-11-06 09:27:29 +00:00
3f07f6bab2 Another 1996-11-06 09:24:57 +00:00
7d5e795596 Getting there, one by one... 1996-11-06 09:21:42 +00:00
92ec7b5812 And another 1996-11-06 09:19:16 +00:00
8b6b4d063a another one bites the dust 1996-11-06 09:17:31 +00:00
e0b772cc00 another gone 1996-11-06 08:52:04 +00:00
33a8df7edd Another one cleaned up 1996-11-06 08:07:45 +00:00
98f72c28dc Oops, two includes unrequired 1996-11-06 08:05:02 +00:00
08905a7406 Another one bite sthe dust 1996-11-06 08:02:40 +00:00
6508241acb another include cleaned out 1996-11-06 07:50:12 +00:00
87b07a3974 Further include file cleanups 1996-11-06 07:44:18 +00:00
8544daf645 Another one bites the dust 1996-11-06 07:05:18 +00:00
90113e2847 another one quickly done up 1996-11-05 11:29:45 +00:00
dc0e256902 clean this one 1996-11-05 11:23:43 +00:00