Commit Graph

1350 Commits

Author SHA1 Message Date
Bruce Momjian ebd61ac03f Remove -k unix socketpath option from client side, allow hostname with
leading slash to behave as a unix socket path.
2000-11-13 23:37:54 +00:00
Bruce Momjian d63a762f79 Ok, You guys are probably tired of me, BUT, here is another one, that
adds the facility to set the program name used in syslog.
(this includes the other ones).

One gotcha, the parser doesn't like special characters in strings.
For example, i tried to use pg-test, and if failed the parse coming
from the postgresql.conf file.

I don't think it's a showstopper..

Larry Rosenman
2000-11-13 21:35:03 +00:00
Bruce Momjian 2150c2edf1 UUNET is looking into offering PostgreSQL as a part of a managed web
hosting product, on both shared and dedicated machines.  We currently
offer Oracle and MySQL, and it would be a nice middle-ground.
However, as shipped, PostgreSQL lacks the following features we need
that MySQL has:

1. The ability to listen only on a particular IP address.  Each
   hosting customer has their own IP address, on which all of their
   servers (http, ftp, real media, etc.) run.
2. The ability to place the Unix-domain socket in a mode 700 directory.
   This allows us to automatically create an empty database, with an
   empty DBA password, for new or upgrading customers without having
   to interactively set a DBA password and communicate it to (or from)
   the customer.  This in turn cuts down our install and upgrade times.
3. The ability to connect to the Unix-domain socket from within a
   change-rooted environment.  We run CGI programs chrooted to the
   user's home directory, which is another reason why we need to be
   able to specify where the Unix-domain socket is, instead of /tmp.
4. The ability to, if run as root, open a pid file in /var/run as
   root, and then setuid to the desired user.  (mysqld -u can almost
   do this; I had to patch it, too).

The patch below fixes problem 1-3.  I plan to address #4, also, but
haven't done so yet.  These diffs are big enough that they should give
the PG development team something to think about in the meantime :-)
Also, I'm about to leave for 2 weeks' vacation, so I thought I'd get
out what I have, which works (for the problems it tackles), now.

With these changes, we can set up and run PostgreSQL with scripts the
same way we can with apache or proftpd or mysql.

In summary, this patch makes the following enhancements:

1. Adds an environment variable PGUNIXSOCKET, analogous to MYSQL_UNIX_PORT,
   and command line options -k --unix-socket to the relevant programs.
2. Adds a -h option to postmaster to set the hostname or IP address to
   listen on instead of the default INADDR_ANY.
3. Extends some library interfaces to support the above.
4. Fixes a few memory leaks in PQconnectdb().

The default behavior is unchanged from stock 7.0.2; if you don't use
any of these new features, they don't change the operation.

David J. MacKenzie
2000-11-13 15:18:15 +00:00
Bruce Momjian c48025e799 Add new 7.0.3 item to all places. 2000-11-12 14:26:48 +00:00
Peter Eisentraut 609f9199af Repair markup 2000-11-11 23:27:48 +00:00
Peter Eisentraut d55f878193 Markup enhancements, some factual corrections. 2000-11-11 23:01:45 +00:00
Thomas G. Lockhart ecc367b764 Mention new AT TIME ZONE feature. 2000-11-11 19:50:31 +00:00
Peter Eisentraut a8555ad4f9 Eliminate word rot 2000-11-11 13:53:49 +00:00
Tom Lane a210023008 Adjust INET/CIDR display conventions and reimplement some INET/CIDR
functions, per recent discussions on pghackers.  For now, I have called
the verbose-display formatting function text(), but will reconsider if
enough people object.
initdb forced.
2000-11-10 20:13:27 +00:00
Bruce Momjian d7f8ffa781 Update TODO list. 2000-11-10 19:42:35 +00:00
Bruce Momjian e0e694640c Add update of HISTORY file for 7.0.3. 2000-11-10 19:41:26 +00:00
Tom Lane 83993240ac Fix typos. 2000-11-10 16:32:09 +00:00
Bruce Momjian a0951eec08 Please apply this patch to current, to fix a problem with runcheck,
that installs into a different path than is configured.

With this applied both postmaster and the shared libs are location
independent
for AIX 4.2 and up.

Thanks
Andreas
2000-11-09 04:17:53 +00:00
Bruce Momjian ac27a5b4b7 Update TODO list. 2000-11-08 20:04:23 +00:00
Peter Eisentraut 929a599369 Add '-c name=val' flag for setting run-time parameters. 2000-11-08 17:57:46 +00:00
Bruce Momjian 493635b25f Update TODO list. 2000-11-06 03:59:20 +00:00
Peter Eisentraut 7267fdd7a3 Add some configure checks for DocBook and related tools. With a somewhat
standard installation layout it should be possible to build the HTML
and print documentation without additional manual setup.
2000-11-05 21:04:07 +00:00
Peter Eisentraut bee6cc6f9c Update for recent developments (C++, shlib), minor fixes 2000-11-05 20:52:59 +00:00
Bruce Momjian d72eb7cbbd Update TODO list. 2000-11-05 00:22:02 +00:00
Bruce Momjian 66436e66e1 Update for createlang options in docs. 2000-11-04 21:09:41 +00:00
Bruce Momjian ae2cf18f55 more procedural doc cleanup 2000-11-04 21:06:37 +00:00
Bruce Momjian 4b71943bb2 Make PROCEDURAL optional in CREATE/DROP LANGUAGE. 2000-11-04 21:04:56 +00:00
Bruce Momjian af17128656 Update FAQ_DEV. 2000-11-04 18:23:36 +00:00
Bruce Momjian 6952b3196b Update FAQ_DEV. 2000-11-04 17:09:24 +00:00
Bruce Momjian 854307a11e Update TODO list. 2000-11-02 21:16:56 +00:00
Peter Eisentraut b7f4c64202 Add pg_dumpall --accounts-only option. 2000-11-02 21:13:32 +00:00
Bruce Momjian cd5dbfb115 Update TODO list. 2000-11-02 20:53:26 +00:00
Bruce Momjian bc9b199c26 Change bool to boolean in docs. 2000-11-02 19:26:49 +00:00
Peter Eisentraut d1bfa6c72e Add runtime configuration options to control permission bits and group
owner of unix socket.
2000-11-01 21:14:03 +00:00
Bruce Momjian 81024e7d80 Fix java driver example. 2000-10-27 22:28:23 +00:00
Bruce Momjian c9476bafdb Update TODO list. 2000-10-26 19:55:10 +00:00
Bruce Momjian a9adde36ea Update TODO list. 2000-10-26 11:41:55 +00:00
Peter Eisentraut b0c1c53a43 Integer binary operators, from Marko Kreen <marko@l-t.ee>. Renamed bitxor
operator to '#' for consistency.  Parser still needs work.
2000-10-24 20:16:48 +00:00
Bruce Momjian c7fc242a06 Update TODO list. 2000-10-24 19:09:20 +00:00
Bruce Momjian e94161e060 Update TODO list. 2000-10-24 01:59:22 +00:00
Tom Lane 4f44aa04b5 Major overhaul of large-object implementation, by Denis Perchine with
kibitzing from Tom Lane.  Large objects are now all stored in a single
system relation "pg_largeobject" --- no more xinv or xinx files, no more
relkind 'l'.  This should offer substantial performance improvement for
large numbers of LOs, since there won't be directory bloat anymore.
It'll also fix problems like running out of locktable space when you
access thousands of LOs in one transaction.
Also clean up cruft in read/write routines.  LOs with "holes" in them
(never-written byte ranges) now work just like Unix files with holes do:
a hole reads as zeroes but doesn't occupy storage space.
INITDB forced!
2000-10-24 01:38:44 +00:00
Bruce Momjian 62bc33df00 Update TODO list. 2000-10-23 22:15:36 +00:00
Tom Lane c82c9559a7 Minor updates/corrections for CREATE/DROP FUNCTION/AGGREGATE/OPERATOR. 2000-10-23 00:46:07 +00:00
Tom Lane 9ace03183c Some small polishing of Mark Hollomon's cleanup of DROP command: might
as well allow DROP multiple INDEX, RULE, TYPE as well.  Add missing
CommandCounterIncrement to DROP loop, which could cause trouble otherwise
with multiple DROP of items affecting same catalog entries.  Try to
bring a little consistency to various error messages using 'does not exist',
'nonexistent', etc --- I standardized on 'does not exist' since that's
what the vast majority of the existing uses seem to be.
2000-10-22 23:32:48 +00:00
Tom Lane cd57d64876 Fix typo. 2000-10-22 19:11:05 +00:00
Bruce Momjian 33581195d5 Per my ongoing discussion with PeterE, here is the patch I applied to
src/template/unixware:

Larry Rosenman
2000-10-21 15:50:32 +00:00
Peter Eisentraut 7c177a4908 Remove portions of SSL documentation patch that were installed twice. 2000-10-21 01:08:34 +00:00
Thomas G. Lockhart 039f3f1b05 Fix discrepency in field names.
Thanks to Henry "He Weiping (Laser Henry)" <laser@zhengmai.com.cn>
 for catching this.
2000-10-20 14:02:12 +00:00
Thomas G. Lockhart 98dba6200a Fix ids and xrefs to avoid duplicates.
Remove copy/paste redundant extra section with slight merge of content.
2000-10-20 14:00:49 +00:00
Thomas G. Lockhart 577fd41c17 Remove ZP4, ZP5, ZP6 from docs since the current parser won't accept
time zones with embedded numerals (parsing to a meaninless "ZP 4"
 instead).
Support "SAT" as an Australian time zone if USE_AUSTRALIAN_RULES
 is defined.
Fix units in exposition on Julian calendar (from Lazer Henry I think...)
2000-10-20 13:57:10 +00:00
Thomas G. Lockhart 1495f56770 Fix up id tag parameters to omit illegal underscores.
Remove lots of extraneous trailing ^Ms from pg_restore.sgml.
2000-10-20 13:44:39 +00:00
Tom Lane be7c0a926b Fix silly typo in redirection example. 2000-10-19 04:53:41 +00:00
Bruce Momjian 3649c75241 Solaris looks like it is OK now, FAQ item removed. 2000-10-19 03:18:56 +00:00
Bruce Momjian ad763aadc6 Update solaris FAQ for pl/pgsql Michel Decima <michel.decima@rd.francetelecom.fr> 2000-10-18 21:18:24 +00:00
Bruce Momjian 8cfa7acaad Make it an FAQ. 2000-10-18 21:14:56 +00:00
Bruce Momjian 73677dd92f The following patch was sent to the patches list:
This patch forces the use of 'DROP VIEW' to destroy views.

It also changes the syntax of DROP VIEW to
DROP VIEW v1, v2, ...
to match the syntax of DROP TABLE.

Some error messages were changed so this patch also includes changes to the
appropriate expected/*.out files.

Doc changes for 'DROP TABLE" and 'DROP VIEW' are included.


--
Mark Hollomon
2000-10-18 16:16:18 +00:00
Philip Warner 60dcf13ea1 Added pg_restore (probably rename later) 2000-10-18 13:29:23 +00:00
Peter Eisentraut 0db3cb253d * doc/src/sgml/regress.sgml: Update for new driver script.
* doc/src/sgml/installation.sgml: ditto.

* src/test/regress/README: Regenerate.

* doc/src/sgml/docguide.sgml: Explain how it was done.  Explain how
INSTALL and HISTORY are (now) generated.

* doc/src/sgml/Makefile: Implement HISTORY generation to be analoguous
to INSTALL.
2000-10-17 15:26:40 +00:00
Bruce Momjian d3f6552821 Remove duplicate requiressl entry. 2000-10-17 14:27:50 +00:00
Bruce Momjian 7e3a15bd5f Update FAQ. 2000-10-17 04:21:30 +00:00
Bruce Momjian be57cd6f63 Update TODO list. 2000-10-17 04:08:33 +00:00
Bruce Momjian b28c63ebdd FAQ_MSWIN is better than INSTALL_MSWIN 2000-10-17 03:29:30 +00:00
Bruce Momjian c72809479b Rename INSTALL_WIN to INSTALL_MSWIN. MS doesn't own the Windows name! 2000-10-17 03:26:36 +00:00
Bruce Momjian 887d958c44 Update TODO list. 2000-10-16 22:03:58 +00:00
Bruce Momjian 5b5ba014dd Update TODO list. 2000-10-16 21:14:35 +00:00
Bruce Momjian ff6f830533 Update TODO list. 2000-10-16 20:05:58 +00:00
Bruce Momjian 38c83465a0 Update TODO list. 2000-10-16 19:49:28 +00:00
Bruce Momjian 9e1e14578f Update TODO list. 2000-10-16 17:18:35 +00:00
Bruce Momjian 96648f6bcb Update TODO list. 2000-10-16 16:13:02 +00:00
Bruce Momjian b8e182bdd3 Update TODO list. 2000-10-16 15:54:12 +00:00
Philip Warner 3c0157deb8 Added pg_restore to allfiles.sgml 2000-10-16 03:34:47 +00:00
Bruce Momjian 06dc338ee9 Here is a patch against the same cvs tree as the SSL patch (Aug 20).
I hope I didn't mess the SGML up too bad, but somebody should definitly
look that over. I tried to steal as much as I could from around :-)

This patch updates:
* Installation instructions (paragraph on how to compile with openssl)
* Documentation of pg_hba.conf (added "hostssl" record docs)
* Libpq documentation (added connection option, documentation of
  PQgetssl() function)
* Add section on SSL to "Server Runtime Environment"

If you beleive any particular area needs more attention, please let me know.

//Magnus
2000-10-16 03:25:17 +00:00
Bruce Momjian ba8f55e8fc Change jdbc docs from postgresql.Driver to org.postgresql.Driver. 2000-10-16 02:20:58 +00:00
Bruce Momjian 69c8f48b0e Update TODO list. 2000-10-15 21:52:48 +00:00
Bruce Momjian 280e9377b1 Update TODO list. 2000-10-15 21:50:49 +00:00
Bruce Momjian 356a6a4ea5 Update TODO list. 2000-10-15 21:45:30 +00:00
Bruce Momjian b65d32671f Update TODO list. 2000-10-15 18:53:25 +00:00
Bruce Momjian a47875f123 Update TODO list. 2000-10-14 21:56:03 +00:00
Bruce Momjian bbd5d65aae Update detail for new todo items. 2000-10-14 04:29:47 +00:00
Bruce Momjian 7bbe216b82 Update TODO list. 2000-10-14 04:22:14 +00:00
Bruce Momjian a44905ea92 Update TODO list. 2000-10-14 04:19:27 +00:00
Bruce Momjian 0b33ace678 Update TODO list. 2000-10-13 01:54:40 +00:00
Bruce Momjian 5f94c032a3 Fix typo 2000-10-12 22:16:58 +00:00
Bruce Momjian 751d8ea175 Fix typo. 2000-10-12 22:08:42 +00:00
Bruce Momjian e52f8688e0 Fix typo 2000-10-12 21:23:34 +00:00
Bruce Momjian 076c164559 Update FAQ. 2000-10-12 21:21:29 +00:00
Bruce Momjian 581b5b8d97 Update TODO list. 2000-10-12 20:26:11 +00:00
Bruce Momjian 3d8bfffb76 Update TODO list. 2000-10-12 20:23:44 +00:00
Bruce Momjian ae55855088 Update TODO.detail. 2000-10-12 19:00:02 +00:00
Bruce Momjian aaa318dad0 Update TODO list. 2000-10-12 18:59:26 +00:00
Bruce Momjian 590718a756 Update TODO list. 2000-10-12 18:59:10 +00:00
Bruce Momjian 5bcc226d9d Update FAQ. 2000-10-12 17:33:35 +00:00
Bruce Momjian 368ca7d3ae Update TODO list. 2000-10-12 17:33:22 +00:00
Bruce Momjian 9dd53f6c52 Update TODO list. 2000-10-12 17:32:40 +00:00
Bruce Momjian c0ead4883c Update TODO list. 2000-10-12 15:43:51 +00:00
Philip Warner ceb6d01d76 First pass at docs for pg_restore 2000-10-12 14:09:37 +00:00
Bruce Momjian 6619ad11ff Update TODO list. 2000-10-12 04:24:24 +00:00
Bruce Momjian f647f96090 Update FAQ. 2000-10-12 03:12:41 +00:00
Bruce Momjian c6a6de416f Update TODO list. 2000-10-12 03:04:44 +00:00
Bruce Momjian d6109bf414 Update TODO for LIKE/ESCAPE. 2000-10-12 01:23:37 +00:00
Bruce Momjian 5ff3756446 Update TODO list. 2000-10-12 01:22:39 +00:00
Tom Lane ec762bcc8a Correct error in description of AccessExclusiveLock mode
(failed to say that it conflicts with AccessShareLock).
2000-10-11 18:29:52 +00:00
Bruce Momjian 5d708fe22e Add pooling discussion. 2000-10-11 18:09:38 +00:00
Tom Lane a37ab1d385 Improve MVCC discussion. 2000-10-11 17:38:36 +00:00
Bruce Momjian 77ac0a8ca6 pg_hba.conf mention fix. 2000-10-11 01:24:01 +00:00