Marc G. Fournier
2ecb7e5e2c
Moved '#define *DEBUG' defines to config.h, and document where first
...
found.
Document any '#ifdef' segments found in config.h
1996-10-18 05:21:27 +00:00
Marc G. Fournier
6e420677dd
Moved '#define *DEBUG' defines to config.h, and document where first
...
found.
Document any '#ifdef' segments found in config.h
Remove gistold.c, since it was older copy of gist.c
1996-10-18 05:21:09 +00:00
Marc G. Fournier
6c8465f69b
#define cleanup: moved #define IPORTAL_DEBUG to config.h
1996-10-18 04:54:47 +00:00
Marc G. Fournier
2d8ffead24
Moved all the CFLAG -D's from the makefiles to config.h towards better
...
centralized configurations/porting...
1996-10-18 04:49:09 +00:00
Marc G. Fournier
1b6322a9c0
Moved more -D's out of the port specific Makefiles straight into the
...
config.h file
1996-10-18 04:45:54 +00:00
Marc G. Fournier
d16bc9ce37
Centralize more of the defines from backend/port under config.h
...
Further ports should *really* avoid backend/port and make use of
config.h
1996-10-18 00:33:41 +00:00
Marc G. Fournier
a839456c41
Move "port specific" #ifdefs out of here and into config.h
...
- created a HAVE_TZSET define for this purpose
1996-10-17 23:59:45 +00:00
Marc G. Fournier
c39857925b
Add a HAVE_TZSET define to clean up defines in backend/utils/adt/nabstime.c
1996-10-17 23:55:27 +00:00
Bryan Henderson
6cbaa93b82
Change treatment of sigaction structure again to include even more platforms.
...
Thanks D'Arcy.
1996-10-16 09:41:13 +00:00
Bryan Henderson
ec610a7696
Remove 4th element of sigaction structure so it works on more platforms.
1996-10-15 07:16:41 +00:00
Bruce Momjian
83cb729887
More closing of relations left open by parser.
1996-10-14 03:53:53 +00:00
Bruce Momjian
1a865b8338
Change display of char(5) to (bp)char 5 so psql \d can
...
distinguish between char and char(1).
1996-10-14 00:33:47 +00:00
Bruce Momjian
81f2f81960
Removed const warning.
1996-10-13 18:39:41 +00:00
Bruce Momjian
54612f5141
D'Arcy change.
1996-10-13 18:38:51 +00:00
Bruce Momjian
baf9a6e24c
Added include needed for recent addition.
...
I hope everyone has sys/socket.h.
1996-10-13 18:38:04 +00:00
Bruce Momjian
e6cacf9211
Added include needed for recent addition.
1996-10-13 18:37:19 +00:00
Bruce Momjian
d31909be6c
Fix structure member name from previous patch.
1996-10-13 17:13:58 +00:00
Bruce Momjian
44bf483446
Removed duplicate MAXNAMELEN define I accidentally added.
1996-10-13 13:46:20 +00:00
Bruce Momjian
86be8677a9
Added consistent include file handling for MAXHOSTNAMELEN.
...
If I have introduced any syntax errors with this, I will patch them in
the morning, and Marc will have a good laugh.
1996-10-13 04:50:27 +00:00
Bruce Momjian
abb1b3e770
I checked the alter table code, and started suspecting the relation
...
cache. I found if I manually added a line to flush the whole relation
cache, the assert error disappeared. Looking through the code, I found
that the relation cache is flushed at the end of each query if the
reference count is zero for the relation. However, printf's showed that
the rd_relcnt(reference count) for the accessed query was not returning
to zero after each query.
It turns out the parser was doing a heap_ropen in parser/analyze.c to
get information about the table's columns, but was not doing a
heap_close.
This was causing the query after the ALTER TABLE ADD to see the old
table structure, and the executor's assert was reporting the problem.
1996-10-13 04:26:39 +00:00
Bryan Henderson
bef3c89a1c
Fix prototypes so postmaster.c will compile.
1996-10-13 04:01:05 +00:00
Bryan Henderson
369848857e
New host-based authentication -- set up pg_hba.conf instead of pg_hba
1996-10-12 07:49:56 +00:00
Bryan Henderson
785234d6ca
New host-based authentication -- send error message when authentication fails
1996-10-12 07:48:49 +00:00
Bryan Henderson
4b5c977782
New host-based authentication with ident
1996-10-12 07:47:12 +00:00
Bryan Henderson
57026d6009
New host-based authentication -- install pg_hba.conf instead of pg_hba
1996-10-12 07:44:39 +00:00
Bryan Henderson
09bb369d23
Separate general purpose functions from portal functions so they may be
...
used in test drivers.
1996-10-11 09:47:14 +00:00
Bryan Henderson
6d70d550e6
Prepare for new host-based authentication
1996-10-11 09:12:18 +00:00
Marc G. Fournier
81cda65f74
Add a MIPS/NetBSD port...
1996-10-11 03:56:41 +00:00
Marc G. Fournier
b7559f94cd
This change should have no practical effect but it is the more
...
correct way to do this. Theoretically you could have a NULL
pointer that isn't represented internally as all 0 bits. This
guarantees that it convert correctly.
Submitted by: darcy@druid.com (D'Arcy J.M. Cain)
1996-10-11 03:25:00 +00:00
Marc G. Fournier
2663dfd94e
I have written some patches to the postgres lock manager which allow the
...
use of long term cooperative locks managed by the user applications.
Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-10-11 03:22:59 +00:00
Marc G. Fournier
97906ac697
Reinstituted NAMEDATALEN OIDNAMELEN in Makefile.global so that initdb
...
works again...
1996-10-11 02:38:16 +00:00
Bryan Henderson
329b38eebb
Add PGUSER environment variable for client to specify Postgres username.
1996-10-10 08:20:11 +00:00
Bruce Momjian
ca5f6dba0f
Comment cleanup.
1996-10-10 00:18:52 +00:00
Bruce Momjian
9b1e61b7e9
Changed psql \h command to print commands in three columns.
...
No more scrolling off the screen.
1996-10-09 00:15:44 +00:00
Bruce Momjian
c306d06cf9
Change sh-style comments to C comments.
1996-10-08 22:23:19 +00:00
Bruce Momjian
dd09982f3e
Add execute permission.
1996-10-08 04:09:50 +00:00
Bruce Momjian
dcef39f03b
Add execute permits.
1996-10-08 04:04:38 +00:00
Bruce Momjian
5fb8eaa592
Add execute permission.
1996-10-08 03:53:10 +00:00
Marc G. Fournier
d6dfbecb07
Moved the following definitions to include/config.h from Makefile.global:
...
NAMEDATALEN
OIDDATALEN
EUROPEAN_DATES
HBA
DEADLOCK_TIMEOUT
OPENLINK_PATCHES
NULL_PATCH
ARRAY_PATCH
Attempting to document and centralize as many of the "defines" as possible...
kinda useless to have defines if nobody knows they exist, eh?
1996-10-08 00:09:05 +00:00
Marc G. Fournier
87bb8daab8
Move the NAMEDATALEN/OIDNAMELEN defines to include/config.h
1996-10-07 23:57:01 +00:00
Marc G. Fournier
6470d5b1c1
Fix handling of no '../doc' directory in compile procedure...
1996-10-07 23:53:47 +00:00
Marc G. Fournier
4e8f5c337c
Well I haven't received any feedback pro or con re my suggested new Tcl
...
function so I am going to assume that it is such a good idea that no
one sees any point in discussing it. :-) I have made two changes -
I have merged this into pgtclCmds.c and I have taken out any code for
updating tuples after the loop body runs. See comments for discussion
of this.
I have also fixed up the error checking stuff so that break, continue
and syntax errors have the expected result.
Submitted by: D'Arcy Cain
1996-10-07 21:19:09 +00:00
Marc G. Fournier
ea733aa997
Fix a couple of small things from D'Arcy's last patch
...
Submitted by: D'Arcy Cain
1996-10-07 21:17:01 +00:00
Bruce Momjian
a409f40ea8
Modified Assert to be more selective.
1996-10-07 19:53:15 +00:00
Marc G. Fournier
3dc0c8e4e5
Fixed a missed change from Carsten Heyl <heyl@nads.de>
1996-10-07 07:18:34 +00:00
Marc G. Fournier
de466eb8f4
Mostly adding "const" keyword and making some functions static.
...
Submitted by: D'Arcy Cain
1996-10-07 03:30:40 +00:00
Bruce Momjian
257b4d090c
Change new assert so it generates assert message rather than SIGSEG.
1996-10-07 02:50:19 +00:00
Bruce Momjian
f6792efcc7
Remove sytax errors from file.
1996-10-07 02:33:25 +00:00
Bruce Momjian
3a56b21832
Update help for alter table. remove EXTEND function.
1996-10-07 02:32:39 +00:00
Bruce Momjian
e8e78f4c7b
Fix typo in help text.
1996-10-05 21:34:33 +00:00
Bruce Momjian
3a0bace14f
Renamed file.
1996-10-05 21:16:34 +00:00
Marc G. Fournier
50e708ef88
Stylistic cleanups...
1996-10-05 20:39:05 +00:00
Bruce Momjian
8999ce097f
Add comment about possible zero value.
1996-10-05 20:33:45 +00:00
Bruce Momjian
efac791640
Change shell-style comments to C-style.
1996-10-05 20:33:10 +00:00
Bruce Momjian
47279960a0
Fix assert to allow zero. OK'ed by Bryan.
1996-10-05 20:31:38 +00:00
Bruce Momjian
a433f22c24
Fix args to match prototype.
1996-10-05 20:30:31 +00:00
Bruce Momjian
f29e02017a
Replace double // with /. THis confuses mkid.
1996-10-05 20:29:57 +00:00
Bruce Momjian
a974522f5f
Added single-letter options and case statement.
1996-10-05 03:24:47 +00:00
Bruce Momjian
2d456c473d
Improved creation of mkid files.
1996-10-05 03:23:49 +00:00
Marc G. Fournier
4feb696be7
Here the fix for the first assertion failure I had which killed
...
my postmaster 1.07.
It's really simple, the loop dealing with all sockets
can't handle more than one ready socket :-)
A simple logic error dealing with lists.
OR IS THERE ANY REASON FOR SETTING curr TO 0?
Submitted by: Carsten Heyl <Heyl@nads.de>
1996-10-04 20:32:07 +00:00
Marc G. Fournier
002be14c45
And bring in change from 1.0.7 tree to here...
1996-10-04 20:29:35 +00:00
Marc G. Fournier
ff25e44d03
Moved the define of SIGNAL_ARGS that D'Arcy just created to config.h so that
...
hopefully this sort of thing can eventually be determined using configure?
1996-10-04 20:20:57 +00:00
Marc G. Fournier
f8009e1786
The remainder of D'Arcy's changes, most notibly the usage of SIGNAL_ARGS
1996-10-04 20:17:11 +00:00
Marc G. Fournier
27bccb9db3
This patch fixes problems in initdb, including that it doesn't run
...
with some versions of sh, and a bug in the master make file that
causes it to issue the message "postgres has been built" at the wrong
time.
Submitted by: bryanh@giraffe.netgate.net (Bryan Henderson)
1996-10-04 20:07:10 +00:00
Marc G. Fournier
c61d606a15
Added dlfcn.h to dl.c in BSD44_derived port
1996-10-03 22:41:42 +00:00
Bruce Momjian
aefb294e13
Added restriction to tables vacuum'able.
...
Added NOTICE messages for bad table names.
1996-10-03 20:11:41 +00:00
Bruce Momjian
487e91484d
Added chown to Makefile to set files to Postgres user.
...
Does not display and generates no error messages on failure.
1996-10-03 20:09:48 +00:00
Bruce Momjian
f5316239b8
Moved them.
1996-10-03 17:27:01 +00:00
Bruce Momjian
4bec96f16f
Brought psql help up to date with syntax and manual.
1996-10-03 15:46:31 +00:00
Bruce Momjian
75e2cbcec3
New vacuum option.
1996-10-03 04:20:41 +00:00
Bruce Momjian
fedb734df9
Fixes extra space in printing.
1996-10-03 04:20:11 +00:00
Bruce Momjian
267ef0a642
Allow vacuum to run for only one table. Fixes allocation bug.
1996-10-03 04:19:29 +00:00
Bruce Momjian
dbc268ca15
Fixed file to properly do SEMUN for BSDI.
...
Grouped some PORTNAME's for SEMUN.
1996-10-03 01:14:37 +00:00
Bruce Momjian
a14bf40b88
Added new single-letter options to initdb.sh.
...
Removed long-option names that used ${#} shell feature which
was a compatability problem.
1996-10-03 00:23:42 +00:00
Marc G. Fournier
67e8736348
change stdout to fout
...
Submitted by: Carsten Heyl <heyl@nads.de>
1996-10-02 21:38:35 +00:00
Marc G. Fournier
0fadfc00ad
Added NEED_UNION_SEMUN to config.h
1996-10-02 20:42:20 +00:00
Marc G. Fournier
22ef6d06fc
Moved whether to define union semun from include/storage/ipc.h to
...
a define in include/config.h
1996-10-02 20:40:17 +00:00
Bruce Momjian
8f7756d796
palloc() finfo memory. From Kurt.
1996-09-26 16:29:05 +00:00
Bruce Momjian
adc98c0b35
Fix cluster finfo problem Kurt reported.
1996-09-26 15:43:35 +00:00
Bruce Momjian
2baf2150e9
Fixed YACC depenencies and 'make clean' now cleans totally.
1996-09-26 15:40:45 +00:00
Bruce Momjian
f8a84c947a
This should cause 'make clean' to clean up bki files. Looks like a typo.
1996-09-26 04:22:49 +00:00
Bruce Momjian
deaaecdf2e
Prevents possible packet loss from SIGCHLD.
1996-09-26 03:17:44 +00:00
Bruce Momjian
fd067981be
Fix location of include files to match postgres.h includes.
1996-09-25 19:37:31 +00:00
Bruce Momjian
0d83b86720
Changed gawk to awk.
1996-09-25 19:24:58 +00:00
Marc G. Fournier
b12fb0e6b5
Patch for:
...
# _fUnKy_POSTPORT_sTuFf_ - port to run the postmaster on
Submitted by: D'Arcy
1996-09-24 01:57:01 +00:00
Marc G. Fournier
4ca1e1300c
Change the comments pertaining to Makefile.custom
...
Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)
1996-09-23 18:17:42 +00:00
Marc G. Fournier
87799e38f1
Prototype setMaxOid()
...
Submitted by: Bruce
1996-09-23 18:15:41 +00:00
Marc G. Fournier
afcbce5c22
CFLAGS +- -I... got messed by one of Bryan's patches
...
Fix Submitted by: Bryan himself :)
1996-09-23 18:14:08 +00:00
Marc G. Fournier
0da293f868
Fix for using Makefile.custom
...
Suggested/Submitted by: darcy@druid.druid.com
Cleaner Method Submitted by: Bryan Henderson <bryanh@giraffe.netgate.net>
1996-09-23 08:43:40 +00:00
Marc G. Fournier
9c6135fb15
From: Bruce Momjian <maillist@candle.pha.pa.us>
...
To: Postgres95-development <pg95-dev@ki.net>
Subject: [PG95-DEV] postgres.h patch
This removes the parameters from the func_ptr prototype in postgres.h in
2.0.
1996-09-23 08:38:45 +00:00
Marc G. Fournier
32620c222e
From: Bruce Momjian <maillist@candle.pha.pa.us>
...
To: Postgres95-development <pg95-dev@ki.net>
Subject: [PG95-DEV] Makefile.global patch
Can we apply the following patch to make EUROPEAN_DATES consistent with
other parameters?
1996-09-23 08:37:41 +00:00
Marc G. Fournier
3bf2b361f0
Date: Sun, 22 Sep 1996 13:47:39 -0400 (EDT)
...
From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Postgres95-development <pg95-dev@ki.net>
Subject: [PG95-DEV] 2.0 patch for fastgetattr
1996-09-23 08:36:39 +00:00
Marc G. Fournier
d00f621d7b
diff -ru ../../../orig/postgres95/src/backend/utils/adt/varlena.c
...
./utils/adt/varlena.c
- --- ../../../orig/postgres95/src/backend/utils/adt/varlena.c Mon Jul 22
23:56:04 1996
+++ ./utils/adt/varlena.c Tue Sep 17 15:12:55 1996
@@ -166,7 +166,7 @@
if (inputText == NULL)
return(NULL);
- - len = strlen(inputText) + VARHDRSZ;
+ len = strlen(inputText) + VARHDRSZ + 1 /* terminating 0 */;
result = (struct varlena *) palloc(len);
VARSIZE(result) = len;
memmove(VARDATA(result), inputText, len - VARHDRSZ);
Submitted by: skimo@breughel.ufsia.ac.be (Sven Verdoolaege)
1996-09-23 08:31:01 +00:00
Marc G. Fournier
fb7f8e7655
diff -ru ../../../orig/postgres95/src/backend/libpq/be-fsstubs.c
...
./libpq/be-fsstubs.c
- --- ../../../orig/postgres95/src/backend/libpq/be-fsstubs.c Tue Jul 9
08:21:30 1996
+++ ./libpq/be-fsstubs.c Tue Sep 17 15:30:09 1996
@@ -241,7 +241,7 @@
*/
fd = open(VARDATA(filename), O_RDONLY, 0666);
if (fd < 0) { /* error */
- - elog(WARN, "lo_import: can't open unix file\"%s\"\n", filename);
+ elog(WARN, "lo_import: can't open unix file \"%s\"\n",
VARDATA(filename));
}
/*
Submited by: skimo@breughel.ufsia.ac.be (Sven Verdoolaege)
1996-09-23 08:29:52 +00:00
Marc G. Fournier
ff4d0d435e
Here's a patch that I discussed recently on pg95-dev that changes the
...
way one creates a database system. Parts that were in "make install"
are not either in "make all" or initdb. Nothing goes in the PGDATA
directory besides user data. Creating multiple database systems is
easier.
In addition to applying the patch, it is necessary to move the file
libpq/pg_hba to backend/libpq/pg_hba.sample.
Submitted by: Bryan Henderson <bryanh@giraffe.netgate.net>
1996-09-23 08:24:13 +00:00
Marc G. Fournier
e7c3adcd94
*** src/backend/storage/file/fd.c.orig Thu Sep 12 17:17:21 1996
...
--- src/backend/storage/file/fd.c Thu Sep 12 17:23:38 1996
***************
*** 262,268 ****
Delete(file);
/* save the seek position */
! fileP->seekPos = lseek(fileP->fd, 0L, SEEK_CUR);
Assert( fileP->seekPos != -1);
/* if we have written to the file, sync it */
--- 262,268 ----
Delete(file);
/* save the seek position */
! fileP->seekPos = (long) lseek(fileP->fd, 0L, SEEK_CUR);
Assert( fileP->seekPos != -1);
/* if we have written to the file, sync it */
Submitted by: Randy Terbush <randy@zyzzyva.com>
1996-09-22 01:30:52 +00:00
Marc G. Fournier
5774d080a7
Turned off EUROPEAN_DATES as default...
...
Pointed out by Bruce
1996-09-21 19:12:11 +00:00
Marc G. Fournier
7efc8ef1a1
|For starters, here's a small patch that removes a compiler warning in that
...
|regex stuff on Linux.
|
|--
|Bryan Henderson Phone 408-227-6803
|San Jose, California
|
1996-09-21 06:31:13 +00:00
Marc G. Fournier
ee420c049f
|This fixes the bug introduced yesterday that causes "not found" errors
...
|with gram.c and parser.h.
|
|--
|Bryan Henderson Phone 408-227-6803
|San Jose, California
|
1996-09-21 06:29:09 +00:00
Marc G. Fournier
83298ee312
Nothing patched...just testing something with CVS...
1996-09-21 06:27:11 +00:00