Commit Graph

762 Commits

Author SHA1 Message Date
Bruce Momjian 10d7287ab9 Libpq non-blocking mode, from Alfred Perlstein 2000-01-18 06:09:24 +00:00
Peter Eisentraut 28125ed5e0 Updated user interfaces on initdb, initlocation, pg_dump, ipcclean to a GNU-compliant'ish state.
Made ipcclean work on Linux.
2000-01-18 00:03:37 +00:00
Bruce Momjian 6759f4388f Update TODO list. 2000-01-17 02:43:13 +00:00
Peter Eisentraut 759fba4873 Included all yacc and lex files into the distribution. 2000-01-16 20:05:00 +00:00
Bruce Momjian 1b6b4d40ed Update TODO list. 2000-01-16 07:05:35 +00:00
Bruce Momjian fae5d81c68 Update TODO list. 2000-01-16 05:18:07 +00:00
Bruce Momjian 255e07e829 Update TODO list. 2000-01-16 02:35:30 +00:00
Bruce Momjian 3a2e08618c Update TODO list. 2000-01-16 02:32:13 +00:00
Bruce Momjian 0f4a586821 Update TODO list. 2000-01-15 19:32:06 +00:00
Peter Eisentraut 2a1bfbce24 - Allow array on int8
- Prevent permissions on indexes
- Instituted --enable-multibyte option and tweaked the MB build process where necessary
- initdb prompts for superuser password
2000-01-15 18:30:35 +00:00
Peter Eisentraut 7c9390caa1 Fixed psql variables vs array syntax, as well as minor psql enhancements 2000-01-14 22:18:03 +00:00
Peter Eisentraut 4ceb2d0cb6 * User management commands no longer user pg_exec_query_dest -> more robust
* Let unprivileged users change their own passwords.

* The password is now an Sconst in the parser, which better reflects its text datatype and also
forces users to quote them.

* If your password is NULL you won't be written to the password file, meaning you can't connect
until you have a password set up (if you use password authentication).

* When you drop a user that owns a database you get an error. The database is not gone.
2000-01-14 22:11:38 +00:00
Tom Lane 2af360ed1c Clean up some problems in new asynchronous-connection logic
in libpq --- mostly, poor response to error conditions.  You now actually
get to see the postmaster's 'The Data Base System is starting up' message,
which you didn't before.  I suspect the SSL code is still broken though.
2000-01-14 05:33:15 +00:00
Bruce Momjian bb7e85fb85 Update TODO list. 2000-01-14 01:10:22 +00:00
Bruce Momjian e419b48217 Update TODO list. 2000-01-13 13:22:05 +00:00
Bruce Momjian 3af969d4a0 Update TODO list. 2000-01-13 03:39:45 +00:00
Bruce Momjian af53b624f0 Update TODO list. 2000-01-13 03:36:42 +00:00
Bruce Momjian 326a69deeb Update TODO list. 2000-01-13 03:06:29 +00:00
Bruce Momjian e589b9e821 Update TODO list. 2000-01-13 02:38:21 +00:00
Bruce Momjian 7c25123df4 Update TODO list. 2000-01-13 01:57:04 +00:00
Bruce Momjian c6035cd173 Update TODO list. 2000-01-13 01:48:46 +00:00
Peter Eisentraut f6689a328f Fixed a few "fixes" and bugs. Adjusted messages and options to GNU suggestions. 2000-01-12 19:36:36 +00:00
Bruce Momjian 142ce7939d Update TODO list. 2000-01-11 12:11:20 +00:00
Tom Lane ac295f43f5 Update struct Trigger definition. 2000-01-11 05:37:11 +00:00
Tom Lane ac401e06c5 Change oid8/int28 -> oidvector/int2vector. 2000-01-11 01:40:04 +00:00
Bruce Momjian 752314eb26 Update TODO list. 2000-01-10 13:20:57 +00:00
Bruce Momjian 8cc9d8454b Update TODO list. 2000-01-10 04:23:58 +00:00
Tom Lane b86ca72f39 Update platform-specific-expected-file support so that platforms can be
specified by regular-expression patterns.  Add some more files.
2000-01-09 20:54:36 +00:00
Bruce Momjian aa48a22a82 The psql online help for ALTER TABLE (\h alter table) is corrupt. I
traced this back to what I believe is an error in the sgml file used to
generate this comment, found in pgsql/doc/src/sgml/ref/alter_table.sgml.


Stephen Birch
2000-01-09 17:35:27 +00:00
Bruce Momjian b16bd18546 Clearify DECLARE syntax by saying cursorname, not just cursor. 1999-12-30 22:58:10 +00:00
Bruce Momjian 649ffe1616 Improve subquery error message, now says "More than one tuple returned
by subselect used as expression."
1999-12-29 22:57:17 +00:00
Bruce Momjian e1b212ff3b Move ipc patch into README.NT. 1999-12-29 10:28:00 +00:00
Bruce Momjian ad322de0ae Update developers faq. 1999-12-24 16:46:11 +00:00
Bruce Momjian a0fa26bef6 Update developers faq in main tree. 1999-12-21 17:34:05 +00:00
Bruce Momjian 1c2257648a > > It would be nice for new users; I think it would make it easier
> > for them to actually set out and do it.  Many new users are
> > of the not-so-knowledgable variety, and shell scripting isn't
> > something they want to undertake.
>
> Can someone modify the vacuumdb shell script to do that?
i tried it... it seems to work

neko@kredit.sth.sz
1999-12-18 08:34:50 +00:00
Thomas G. Lockhart 97710d9f5a Fix typo in tag. 1999-12-17 14:52:51 +00:00
Bruce Momjian 83bad7c063 This is my -- hopefully sufficiently portable -- attempt at cleaning out
initdb. No more obscure dependencies on environment variables or paths.
It
now finds the templates and the right postgres itself (with cmd line
options as fallback). It also no longer depends on $USER (su safe), and
doesn't advertise that --username allows you to install the db as a
different user, since that doesn't work anyway. Also, recovery and
cleanup
on all errors. Consistent options, clearer documentation.

Please take a look at this and adopt it if you feel it's safe enough. I
have simulated all the stupid circumstances I could think of, but you
never know with shell scripts.

Oh yeah, you can give the postgres user a default password now.

--
Peter Eisentraut                  Sernanders väg 10:115
1999-12-17 01:05:31 +00:00
Bruce Momjian 4cb1fb6f59 Update for QNX. 1999-12-16 16:52:53 +00:00
Bruce Momjian 549a8ba59a > From what I gather, this should be a little cleaner because the
triggered
> function now returns the right datatype.

Oops, I got crossed up with Jan's improvements. Ignore this.

--
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
1999-12-14 00:17:33 +00:00
Bruce Momjian bcaabc5698 Depending on my interpreting (and programming) skills, this might solve
anywhere from zero to two TODO items.

* Allow flag to control COPY input/output of NULLs

I got this:
COPY table .... [ WITH NULL AS 'string' ]
which does what you'd expect. The default is \N, otherwise you can use
empty strings, etc. On Copy In this acts like a filter: every data item
that looks like 'string' becomes a NULL. Pretty straightforward.

This also seems to be related to

* Make postgres user have a password by default

If I recall this discussion correctly, the problem was actually that the
default password for the postgres (or any) user is in fact "\N", because
of the way copy is used. With this change, the file pg_pwd is copied out
with nulls as empty strings, so if someone doesn't have a password, the
password is just '', which one would expect from a new account. I don't
think anyone really wants a hard-coded default password.

Peter Eisentraut                  Sernanders väg 10:115
1999-12-14 00:08:21 +00:00
Tom Lane ff6fe1502d Update documentation to reflect availability of aggregate(DISTINCT).
Try to provide a more lucid discussion in 'Using Aggregate Functions'
tutorial section.
1999-12-13 17:39:38 +00:00
Bruce Momjian cb00b7faa5 I'm in TODO mood today ...
* Document/trigger/rule so changes to pg_shadow recreate pg_pwd

I did it with a trigger and it seems to work like a charm. The function
that already updates the file for create and alter user has been made a
built-in "SQL" function and a trigger is created at initdb time.

Comments around the pg_pwd updating function seem to be worried about
this
routine being called concurrently, but I really don't see a reason to
worry about this. Verify for yourself. I guess we never had a system
trigger before, so treat this with care, and feel free to adjust the
nomenclature as well.

--
Peter Eisentraut                  Sernanders väg 10:115
1999-12-12 05:57:36 +00:00
Bruce Momjian 11023eb1f5 Meanwhile, database names with single quotes in names don't work very well
at all, and because of shell quoting rules this can't be fixed, so I put
in error messages to that end.

Also, calling create or drop database in a transaction block is not so
good either, because the file system mysteriously refuses to roll back rm
calls on transaction aborts. :) So I put in checks to see if a transaction
is in progress and signal an error.

Also I put the whole call in a transaction of its own to be able to roll
back changes to pg_database in case the file system operations fail.

The alternative location issues I posted recently were untouched, awaiting
the outcome of that discussion. Other than that, this should be much more
fool-proof now.

The docs I cleaned up as well.

Peter Eisentraut                  Sernanders väg 10:115
1999-12-12 05:15:10 +00:00
Bruce Momjian e6ac08c398 Update TODO list. 1999-12-11 00:31:37 +00:00
Bruce Momjian cb0032cdcf Update for QNX from Kardos, Dr. Andrea 1999-12-09 15:56:16 +00:00
Bruce Momjian a0aab48fcd Okay, that should put us back in sync. These two patches (src & doc) are
against the sources from one hour ago and contain all the portable and
up
to date stuff.

A few other CVS "householding" things you might want to take care of:

* Remove the src/bin/cleardbdir directory

* Remove the file src/bin/psql/sql_help.h from the repository, as it is
a derived file and is build by the release_prep.

Peter Eisentraut
1999-12-07 22:41:44 +00:00
Thomas G. Lockhart 1d8ce77233 Update entries with recent results for Alpha and ARM processors.
Remove references to Ultrix; haven't heard from it for a *long* time :(
1999-12-06 16:40:45 +00:00
Thomas G. Lockhart b7f6168516 Fix markup (a couple of missing tags) and renormalize. 1999-12-06 16:38:25 +00:00
Thomas G. Lockhart b6332952b7 Remove references to PostgreSQL as "public-domain" since that has a
specific meaning wrt copyright (or lack thereof).
1999-12-06 16:37:11 +00:00
Bruce Momjian 7657bce7a0 Clean up doc/Makefile to install manual pages. 1999-12-05 21:23:00 +00:00
Bruce Momjian 60ae5ed037 Remove destroylang.sgml. 1999-12-05 20:29:18 +00:00
Bruce Momjian d7857e5713 Update. 1999-12-05 20:22:00 +00:00
Bruce Momjian 66f8da0756 Update 1999-12-05 20:04:42 +00:00
Bruce Momjian ed62104ea9 I cleaned those out as well (the echo -n "bug" was in there ;) and moved
them into the scripts dir. I also added a --list option to show already
installed languages.

This whole moving and renaming totally confused CVS and my checked out
copy got completely fried last night. When you apply the source patch,
please make sure that all the directories src/bin/{create|destroy}* as
well as vacuumdb, cleardbdir are gone and that all the scripts (7) are
in
scripts/.

Meanwhile I am still puzzled about what happened with the docs patch.
Because I don't know what you got now, the second attachment contains
the
files

ref/allfiles.sgml
ref/commands.sgml
ref/createlang.sgml
ref/droplang.sgml
doc/src/sgml/Makefile

Peter Eisentraut                  Sernanders väg 10:115
1999-12-05 20:02:49 +00:00
Bruce Momjian e2b71e0839 Re-add destroylang. 1999-12-04 12:50:54 +00:00
Bruce Momjian e958a30542 Update scripts from Peter. 1999-12-04 05:03:49 +00:00
Bruce Momjian 240e4c98f5 New scripts for create/drop user/db from Peter Eisentraut 1999-12-04 04:53:22 +00:00
Bruce Momjian eebfb9baa5 create/alter user extension
This one should work much better than the one I sent in previously. The
functionality is the same, but the patch was missing one file resulting
in
the compilation failing. The docs also received a minor fix.

Peter Eisentraut                  Sernanders väg 10:115
1999-11-30 03:57:29 +00:00
Bruce Momjian 3ab5b1f1e6 This patch (against the current CVS sources) adds to libpq the functions
PQconnectStart
PQconnectPoll
PQresetStart
PQresetPoll
PQsetenvStart
PQsetenvPoll
PQsetenvAbort

and brings into the published interface

PQsetenv.

The first four are asynchronous analogues of PQconnectdb and PQreset -
they allow an application to connect to the DB without blocking on
remote I/O.

The PQsetenv functions perform an environment negotiation with the
server.

Internal to libpq, pqReadReady and pqWriteReady have been made available
across the library (they were previously static functions inside
fe-misc.c).  A lot of internal rearrangement has been necessary to
support these changes.

The API documentation has been updated also.

Caveats:

  o  The Windows code does not default to using non-blocking sockets,
since I have no documentation: Define WIN32_NON_BLOCKING_CONNECTIONS to
do that.

  o  The SSL code still blocks.


Ewan Mellor.
1999-11-30 03:08:19 +00:00
Bruce Momjian daf6ffb6f0 Update TODO list. 1999-11-30 02:14:13 +00:00
Tom Lane fb55fa0478 Remove obsolete note about pg_vlock lock file. 1999-11-28 02:17:43 +00:00
Bruce Momjian 1592c3179f Update TODO list. 1999-11-26 04:38:59 +00:00
Bruce Momjian 78bc83fedf * Includes tab completion. It's not magic, but it's very cool. At any
rate
  it's better than what used to be there.

* Does proper SQL "host variable" substitution as pointed out by Andreas
  Zeugwetter (thanks): select * from :foo; Also some changes in how ':'
  and ';' are treated (escape with \ to send to backend). This does
_not_
  affect the '::' cast operator, but perhaps others that contain : or ;
  (but there are none right now).

* To show description with a <something> listing, append '?' to command
  name, e.g., \df?. This seemed to be the convenient and logical
solution.
  Or append a '+' to see more useless information, e.g., \df+.

* Fixed fflush()'ing bug pointed out by Jan during the regression test
  discussion.

* Added LastOid variable. This ought to take care of TODO item "Add a
  function to return the last inserted oid, for use in psql scripts"
  (under CLIENTS)
  E.g.,
insert into foo values(...);
insert into bar values(..., :LastOid);
\echo $LastOid

* \d command shows constraints, rules, and triggers defined on the table
  (in addition to indices)

* Various fixes, optimizations, corrections

* Documentation update as well


Note: This now requires snprintf(), which, if necessary, is taken from
src/backend/port. This is certainly a little weird, but it should
suffice
until a source tree cleanup is done.

Enjoy.

--
Peter Eisentraut                  Sernanders väg 10:115
1999-11-26 04:24:17 +00:00
Bruce Momjian f0e18e967c Cleanup paths in install files. 1999-11-23 18:24:55 +00:00
Bruce Momjian a895cb7837 Change v6.5.2 to 6.5.2. 1999-11-23 18:08:07 +00:00
Bruce Momjian 90e0b668a4 Update TODO list. 1999-11-22 18:05:47 +00:00
Bruce Momjian fc955b14ea Add system indexes to match all caches.
Make all system indexes unique.
Make all cache loads use system indexes.
Rename *rel to *relid in inheritance tables.
Rename cache names to be clearer.
1999-11-22 17:56:41 +00:00
Bruce Momjian 106ded2a6e Update TODO list. 1999-11-14 05:11:02 +00:00
Bruce Momjian d286f13b47 Update NT readme with new name. 1999-11-12 17:05:08 +00:00
Bruce Momjian 6b99fcf3e2 Update for documentation in libpq changes. 1999-11-11 21:52:28 +00:00
Bruce Momjian c6c60302ba Cleanup of psql \copyright 1999-11-10 01:22:37 +00:00
Bruce Momjian 32edd98519 Update TODO list. 1999-11-06 16:55:05 +00:00
Bruce Momjian 5e3189eaff Update psql banner 1999-11-05 18:21:09 +00:00
Bruce Momjian e9a5030977 Update TODO list. 1999-11-05 16:38:54 +00:00
Bruce Momjian f793ac0a16 Update psql display. 1999-11-05 15:44:57 +00:00
Bruce Momjian 83c30df0e9 Update TODO list. 1999-11-05 01:04:59 +00:00
Bruce Momjian 5e956342de Update man pages for new banner. 1999-11-05 00:57:39 +00:00
Bruce Momjian 2323b63631 Update psql with man pages and new version of help. 1999-11-04 22:07:57 +00:00
Bruce Momjian 33a5c0ead1 Update for 6.5.3. 1999-11-01 16:20:46 +00:00
Bruce Momjian 557ca54dce Update TODO list. 1999-10-31 13:19:42 +00:00
Bruce Momjian 23229f49a8 Update TODO list. 1999-10-31 13:10:47 +00:00
Bruce Momjian 60f3e6b3a5 Make USING in COPY optional. 1999-10-29 23:52:22 +00:00
Bruce Momjian 964c649cc1 Update TODO list. 1999-10-27 18:28:59 +00:00
Bruce Momjian aeef71718a Add mention of NULL for COMMENT. 1999-10-26 16:36:28 +00:00
Bruce Momjian 9e44249b6e update 1999-10-26 05:16:00 +00:00
Bruce Momjian c5884e03ac Update TODO list. 1999-10-26 04:59:12 +00:00
Bruce Momjian 021146f375 improve manual page 1999-10-26 04:40:58 +00:00
Bruce Momjian 2c212b2c54 Update TODO list. 1999-10-26 04:21:59 +00:00
Bruce Momjian c6626d2fdc Update TODO list. 1999-10-26 04:12:34 +00:00
Bruce Momjian 912b3a6fe9 More comments. 1999-10-26 03:53:35 +00:00
Bruce Momjian b6d6cffa99 Add documentation for comment. 1999-10-26 03:48:58 +00:00
Bruce Momjian 5374f3e7bb Update TODO list. 1999-10-22 11:51:12 +00:00
Bruce Momjian 768064de54 Update TODO list. 1999-10-21 16:58:49 +00:00
Bruce Momjian d07766fb50 Update TODO list. 1999-10-18 01:12:51 +00:00
Bruce Momjian e16db38376 Clean up type descriptions. 1999-10-15 04:56:52 +00:00
Bruce Momjian 55fa71a9e9 Add S-tree doc for possible future use. 1999-10-15 01:47:55 +00:00
Bruce Momjian 2d12ee3f71 Update psql \? for \w. 1999-10-14 01:28:42 +00:00
Bruce Momjian e3dd4942c7 Update for NUMERIC/DECIMAL data type. 1999-10-13 02:44:23 +00:00
Bruce Momjian 4fa0fd22a3 Update sgml. 1999-10-12 15:48:47 +00:00
Bruce Momjian 867d047372 Update for 6.5.3, including new INSTALL file and updated HISTORY. 1999-10-12 15:34:19 +00:00