1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-05 07:21:24 +03:00
Commit Graph

1225 Commits

Author SHA1 Message Date
e7046924a5 Fix: Operand Order Affects OR.
where x <> 1 or x isnull
didn't return tuples with x NULL.
1997-09-22 04:19:36 +00:00
3f365ba0fc Inline memset() as MemSet(). 1997-09-18 20:22:58 +00:00
f3e9cf9c6b Fix pfree problem. 1997-09-15 14:29:01 +00:00
4587547f13 Added: SPI_copytuple() & SPI_modifytuple() 1997-09-12 08:37:52 +00:00
fd3ad7d765 Allow to call utility funcs without SPI_connect. 1997-09-12 05:11:14 +00:00
1ea01720d5 heapattr functions now return a Datum, not char *. 1997-09-12 04:09:08 +00:00
6e04b4b20f Use strcasecmp in SPI_fnumber(TupleDesc tupdesc, char *fname). 1997-09-12 02:42:40 +00:00
a74613f478 Cleanups. 1997-09-11 07:24:37 +00:00
59f6a57e59 Used modified version of indent that understands over 100 typedefs. 1997-09-08 21:56:23 +00:00
075cede748 Add typdefs to pgindent run. 1997-09-08 20:59:27 +00:00
319dbfa736 Another PGINDENT run that changes variable indenting and case label indenting. Also static variable indenting. 1997-09-08 02:41:22 +00:00
1ccd423235 Massive commit to run PGINDENT on all *.c and *.h files. 1997-09-07 05:04:48 +00:00
bf1d9aeb97 Cleanups. 1997-09-06 11:23:05 +00:00
78d74e32fb execMain.c: little changes in trigger interface...
spi.c: functions to prepare/run and preserve plans for
       duration of transaction/session. Some data utilities.
1997-09-04 13:22:39 +00:00
283e18ab0e BEFORE/AFTER ROW INSERT/DELETE/UPDATE triggers startup. 1997-09-01 08:01:46 +00:00
d65584d297 Get rid of #include "../backend/parser/parse.h 1997-08-31 11:41:20 +00:00
0b6dc93b32 Add spi.o 1997-08-30 10:28:47 +00:00
0d0254d1fb SPI manager. 1997-08-29 09:05:57 +00:00
3751b49545 Number of tuples inserted/affected by INSERT/UPDATE/DELETE... 1997-08-27 09:05:24 +00:00
75c6c2b608 Inlined heap_getattr(). 1997-08-26 23:31:58 +00:00
d40885cc40 + ExecConstraints() 1997-08-22 14:28:20 +00:00
ed2c54b240 DEFAULT handling
Use  for 'selct .. into ..' copy of TupleDesc (without constraints)
#ifdef NOT_USED for resetVarAttrLenForCreateTable (just free tupdesc copy)
1997-08-22 03:12:19 +00:00
e482462960 Rename pg_attribute.attnvals to attdisbursion. 1997-08-21 03:02:13 +00:00
f1edf02cc1 Change pg_attribute.attnvals to float4, change #ifdef 0 to #if 0, fix aix call to strNcpy, fix pg_super_user_id in pg_dumpall, change pg_database.dtadba from oid to int4. 1997-08-21 02:28:55 +00:00
11ac1bf268 More NOT_USEDs 1997-08-20 14:54:35 +00:00
1d8bbfd2e7 Make functions static where possible, enclose unused functions in #ifdef NOT_USED. 1997-08-19 21:40:56 +00:00
b992e200b8 NOT NULL implementation (submitted by Robson Paniago de Miranda). 1997-08-19 04:46:15 +00:00
b99c63cfc0 Now that names are null terminated, no need to do all that NAMEDATALEN stuff. 1997-08-18 20:53:48 +00:00
ea5b5357cd Remove more (void) and fix -Wall warnings. 1997-08-12 22:55:25 +00:00
f5f366e188 Allow internal sorts to be stored in memory rather than in files. 1997-08-06 03:42:21 +00:00
79e78f0b80 Added SCO support, from Daniel Harris. 1997-07-28 00:57:08 +00:00
41882fde34 setVarAttrLenForCreateTable(): use varnoold/varoattno instead of
varno/varattno.
1997-06-13 03:24:26 +00:00
c3a960ad8a Fix for SELECT * INTO TABLE for char(), varchar() fields. 1997-05-31 16:52:19 +00:00
051b4210e3 Fix for Hash and arrays 1997-04-22 03:32:38 +00:00
9d5c0af586 From: Thomas Lockhart <Thomas.G.Lockhart@jpl.nasa.gov>
Subject: [HACKERS] Aggregate function patches

Here are the aggregate function patches I originally sent in last December.
They fix sum() and avg() behavior for ints and floats when NULL values are
involved.

I was waiting to resubmit these until I had a chance to write a v6.0->v6.1
database upgrade script to ensure that existing v6.0 databases which have
not been reloaded for v6.1 do no break with the new aggregate behavior.
These scripts are included below. It's OK with me if someone wants to do
something different with the upgrade strategy, but something like this
was discussed a few weeks ago.

Also, there were a couple of small items which cropped up in doing a clean
install of 970403 (actually 970402 + 970403 changes since the full 970403
tar file appears to be damaged or at least suspect). They are the first
two patches below and can be omitted if desired (although I think they
aren't dangerous :).
1997-04-03 19:56:47 +00:00
41aeed4334 Can't INSERT/UPDATE/DELETE sequence relation. 1997-04-02 04:04:11 +00:00
b66569e41f 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.
1997-03-12 21:00:17 +00:00
e4949f9fe5 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.
1997-03-12 20:48:48 +00:00
8e90978146 Fixing bug in INDEXSCAN_PATCH:
ExecInitIndexScan now works with operands of Param type and
(!!!) postquel_execute() now substitutes param values
before calling postquel_start().
1997-01-22 05:26:50 +00:00
a5dd06f763 include sem.h added, include string.h neede, from Erik Bertelsen for Ultrix 1997-01-10 20:19:49 +00:00
c6a605705c index_insert has now HeapRelation as last param (for unique index
implementation).
1997-01-10 10:00:39 +00:00
d6c06feb18 Add cast to quiet compiler warning. 1996-12-23 08:39:27 +00:00
9b41da6ce4 Rename postgres95 to PostgreSQL. Add comment for SELECT NULL 1996-12-11 00:28:15 +00:00
7f8b8b9e42 Fix for SELECT NULL. 1996-12-07 04:37:06 +00:00
1eae8e1228 Fix compiler warning about unitialized variables. 1996-12-01 19:48:39 +00:00
f0a9e64afd As someone asked for this feature - patch for 1.09 follows.
Now You can do queries like

select sum(some_func(x)) from ...
select min(table1.x + table2.y) from table1, table2 where ...

and so on.

Vadim
1996-11-30 17:49:02 +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
aaeef4d17d All external function definitions now have prototypes that are checked. 1996-11-10 03:06:38 +00:00
c9c0e111b8 More compile cleanups 1996-11-08 20:46:33 +00:00
4b2b8592a0 Compile and warning cleanup 1996-11-08 06:02:30 +00:00