Commit Graph

2271 Commits

Author SHA1 Message Date
Tom Lane 499abb0c0f Implement new 'lightweight lock manager' that's intermediate between
existing lock manager and spinlocks: it understands exclusive vs shared
lock but has few other fancy features.  Replace most uses of spinlocks
with lightweight locks.  All remaining uses of spinlocks have very short
lock hold times (a few dozen instructions), so tweak spinlock backoff
code to work efficiently given this assumption.  All per my proposal on
pghackers 26-Sep-01.
2001-09-29 04:02:27 +00:00
Bruce Momjian a8385d07c8 Update TODO list. 2001-09-28 21:39:31 +00:00
Thomas G. Lockhart 0b268e5d88 Fix markup to allow compilation. The chapters on failure and recovery
need more work, but at least they have something now.
2001-09-28 20:48:17 +00:00
Bruce Momjian 7fb60b06ff Add to thread thread. 2001-09-28 19:06:50 +00:00
Bruce Momjian 466b644cc9 Add to thread. 2001-09-28 18:56:57 +00:00
Bruce Momjian abb6134095 Add to threads. 2001-09-28 18:30:05 +00:00
Bruce Momjian 3676e121f0 Update TODO list. 2001-09-28 15:31:25 +00:00
Bruce Momjian 229aa5a54d Update TODO list. 2001-09-28 15:31:08 +00:00
Thomas G. Lockhart f9681968e0 Add information on new timestamp and timestamptz data types.
Start chapter on recovery techniques. Still needs work for release.
2001-09-28 08:15:35 +00:00
Tom Lane 3d59ad00e8 Remove useless LockDisable() function and associated overhead, per my
proposal of 26-Aug.
2001-09-27 16:29:13 +00:00
Peter Eisentraut c0a9283742 Rename collect_* options to more user-friendly names. 2001-09-23 21:52:36 +00:00
Bruce Momjian 9e60c0f698 Update TODO list. 2001-09-23 14:01:57 +00:00
Bruce Momjian 6aa7738524 Update TODO list. 2001-09-23 14:01:25 +00:00
Bruce Momjian 8dffc8fbef Update TODO list. 2001-09-23 13:59:17 +00:00
Bruce Momjian 328870a890 One more LIMIT doc update. 2001-09-23 13:34:44 +00:00
Bruce Momjian 296011d87e Update TODO list. 2001-09-23 04:15:13 +00:00
Bruce Momjian 1ea5d1b161 Update TODO list. 2001-09-23 04:13:29 +00:00
Bruce Momjian c7bc0ddf76 Update TODO list. 2001-09-23 04:08:38 +00:00
Bruce Momjian 0a24c70a8f Add mention of log file rotation with mention of syslog SIGHUP capability. 2001-09-23 04:06:24 +00:00
Bruce Momjian 1aab783b59 Implement TODO item:
* Change LIMIT val,val to offset,limit to match MySQL

Documentation updates too.
2001-09-23 03:39:01 +00:00
Bruce Momjian ddfdb1e3f1 Update anoncvs info, per Marc. 2001-09-23 01:16:35 +00:00
Bruce Momjian c36e2b2d0d Update FAQ. 2001-09-23 00:07:50 +00:00
Bruce Momjian 39ceaa19f0 Fix 6.4.* release dates, pointed out by Tom Lane. 2001-09-22 21:36:38 +00:00
Bruce Momjian f5ab01ada7 WAL file numbers: Sequenatial -> ever-increasing 2001-09-22 03:59:17 +00:00
Peter Eisentraut 91778e890d Suggest running ldconfig after installation if available. 2001-09-21 23:20:02 +00:00
Peter Eisentraut fdf07fe14f For consistency with the rest of PostgreSQL, rename BLOBs to large objects
in messages and documentation.
2001-09-21 21:58:30 +00:00
Tom Lane 196700c372 Add 'reload' option to pg_ctl to send SIGHUP to the postmaster. 2001-09-21 21:10:56 +00:00
Tom Lane c1c888a9de Code review for MD5 authorization patch. Clean up some breakage
(salts were always zero!?), add much missing documentation.
2001-09-21 20:31:49 +00:00
Peter Eisentraut 4e77b4a548 Readd test/regress/README file, this time with a well-defined and simple
rule to remake it when necessary.
2001-09-21 18:37:05 +00:00
Tom Lane 35b7601b04 Add an overall timeout on the client authentication cycle, so that
a hung client or lost connection can't indefinitely block a postmaster
child (not to mention the possibility of deliberate DoS attacks).
Timeout is controlled by new authentication_timeout GUC variable,
which I set to 60 seconds by default ... does that seem reasonable?
2001-09-21 17:06:12 +00:00
Tom Lane c969fed7ec Give VACUUM its own GUC parameter for memory usage, rather than
piggybacking on SortMem.  Add documentation for some recently-added
GUC parameters that had so far escaped it.
2001-09-21 03:32:36 +00:00
Peter Eisentraut 14ac04710a Document the sign() function. 2001-09-20 16:41:26 +00:00
Peter Eisentraut a1ee06625c Provide tunable knob for x = NULL -> x IS NULL transformation, default to off. 2001-09-20 14:20:28 +00:00
Peter Eisentraut 4a4abd4232 Generate index.html as the root file name of the documentation set,
rather than making index.html a symlink to the autogenerated name.
Fixes fatal problems with tar programs that don't handle symlinks
very well (MacOS X).

(The names user.html, admin.html, etc. are still available as make
targets, but they aren't packaged anymore.)

Use the manifest file that the stylesheets generate as the file list
for packaging.  Put graphics in the right place while building, not
while packaging, so you can actually look at them after building.
2001-09-18 12:08:27 +00:00
Tom Lane 89fa551808 EXPLAIN ANALYZE feature to measure and show actual runtimes and tuple
counts alongside the planner's estimates.  By Martijn van Oosterhout,
with some further work by Tom Lane.
2001-09-18 01:59:07 +00:00
Peter Eisentraut 27d2890b87 Unify the zip rules and variables. 2001-09-17 23:00:27 +00:00
Tom Lane 2aa6ad1183 Update documentation's info about location of our CVSROOT. 2001-09-16 23:52:29 +00:00
Peter Eisentraut d3215af7ad Update intro in face of TOAST. 2001-09-16 22:53:52 +00:00
Peter Eisentraut 264f8f2b6c Install dynamically loadable modules into a private subdirectory
under libdir, for a cleaner separation in the installation layout
and compatibility with binary packaging standards.  Point backend's
default search location there.  The contrib modules are also
installed in the said location, giving them the benefit of the
default search path as well.  No changes in user interface
nevertheless.
2001-09-16 16:11:11 +00:00
Bruce Momjian 73a4bcc1aa Point to HISTORY File for current info. 2001-09-16 04:18:57 +00:00
Bruce Momjian f5db0bc968 Add list of 7.2 changes in preparation for beta. 2001-09-16 04:12:35 +00:00
Peter Eisentraut 1b506c9661 updates 2001-09-15 19:56:59 +00:00
Peter Eisentraut d694260765 Markup examples as examples. 2001-09-15 16:08:59 +00:00
Peter Eisentraut 4284002d35 Markup examples as examples. Fix formatting of examples. 2001-09-15 00:48:59 +00:00
Peter Eisentraut 184c4afcd6 Some formatting changes, add CSS stylesheet. Include indexes in
documentation tarball builds.
2001-09-14 20:37:55 +00:00
Tatsuo Ishii 113cf00edf Add semicolon 2001-09-14 10:28:09 +00:00
Tatsuo Ishii b4982f9b6d Fix typo. 2001-09-14 10:24:35 +00:00
Tatsuo Ishii f9d2749a03 Fix exmaple
Tatsuo Ishii
2001-09-14 09:49:00 +00:00
Tatsuo Ishii 03df474440 Fix show message
Tatsuo Ishii
2001-09-14 08:47:00 +00:00
Tatsuo Ishii e38664aaa2 Add semicolon
Tatsuo Ishii
2001-09-14 08:24:29 +00:00
Tatsuo Ishii 479cba8367 Example rules do not work.
CREATE RULE bad_rule_combination_1 AS
    ON SELECT TO emp
    DO INSTEAD
        SELECT * FROM toyemp;

CREATE RULE bad_rule_combination_2 AS
    ON SELECT TO toyemp
    DO INSTEAD
        SELECT * FROM emp;

	Tatsuo Ishii
2001-09-14 08:19:55 +00:00
Tatsuo Ishii 3f45796c7b Add semicolon 2001-09-14 08:05:55 +00:00
Tatsuo Ishii 147c742aa2 Add semicolon
Tatsuo Ishii
2001-09-14 07:59:31 +00:00
Bruce Momjian 4f0e6e3345 Update TODO list. 2001-09-14 03:21:42 +00:00
Bruce Momjian 5be2182e47 Update TODO list. 2001-09-14 01:23:14 +00:00
Bruce Momjian 2dcdd5fa53 Update TODO list. 2001-09-14 00:41:06 +00:00
Peter Eisentraut 76273a51a8 Update compatibility information. 2001-09-13 19:40:34 +00:00
Peter Eisentraut 861a0d7b5a Update compatibility information. 2001-09-13 19:05:29 +00:00
Peter Eisentraut a6496a2338 Update compatibility information. 2001-09-13 18:17:44 +00:00
Peter Eisentraut 351a0c1736 Replace ASCII-quotes with proper markup. 2001-09-13 15:55:24 +00:00
Peter Eisentraut f93449eb34 'chown -R postgres /usr/local/pgsql' is wrong. Need to do some more typing. 2001-09-12 20:57:28 +00:00
Bruce Momjian aaed778074 Attached patch is correction for 'doc/jdbc.sgml' of PostgreSQL 7.1.3.
Correction content:
  * I revised a mistake of type (copy and paste).
  * I revised multiplicity of description.

Ryouichi Matsuda
2001-09-12 15:55:00 +00:00
Bruce Momjian 0b8a76b24d Followings are proposed fixes to jdbc.sgml(line numbers are for 7.1.3
doc).

Hiroyuki Yatabe
2001-09-12 15:49:10 +00:00
Peter Eisentraut dfdbf6898f max_locks_per_transaction seems to be a more consistent name than
max_locks_per_xact.
2001-09-12 14:06:37 +00:00
Bruce Momjian 33a82e7fd8 Here's some matching documentation, including some other
undocumented items in TD.

Should doc patches alse be sent to pgsql-patches, or do I
have to subscribe to pgsql-docs?

The archive link for pgsql-patches is broken, and I don't
see any patches in spot checking the archive for pgsql-docs.

-Brad McLean.
2001-09-12 03:58:15 +00:00
Tatsuo Ishii 3b99f74d95 Fix typo (add ;) 2001-09-12 02:13:25 +00:00
Tatsuo Ishii 2d12bc1ea1 Fix typo (add ;) 2001-09-12 01:55:25 +00:00
Tatsuo Ishii 7dc4a45ae7 Fix typo. 2001-09-12 01:22:25 +00:00
Tatsuo Ishii 95dc7785b5 Add single quote (example given here does not work) 2001-09-11 05:11:59 +00:00
Bruce Momjian 14fa192d46 Update TODO list. 2001-09-11 05:09:45 +00:00
Tatsuo Ishii d7f3cbc288 Fix regression test in the case of building as root. 2001-09-11 02:24:52 +00:00
Peter Eisentraut a457d33516 Markup and spell-check run over Programmer's Guide (rather incomplete still). 2001-09-10 21:58:47 +00:00
Bruce Momjian 0682c26ed5 Update TODO list. 2001-09-10 15:21:20 +00:00
Tatsuo Ishii 531126c854 Short version of install procedure fails due to lacking chown. 2001-09-10 08:46:46 +00:00
Tatsuo Ishii 35d3c85ac0 The usage of kill is incorrect (lacks "data"). Anyway we should use
pg_ctl instead.
2001-09-10 07:17:01 +00:00
Tatsuo Ishii acb66fc5bf Fix typo. split does not produce ".". 2001-09-10 07:11:28 +00:00
Tatsuo Ishii 0e76f1bb1a Fix typo. 2001-09-10 06:35:34 +00:00
Tatsuo Ishii f8f0ff6b57 Example program lacks RETURN 2001-09-10 06:30:43 +00:00
Tatsuo Ishii 82b889a044 Fix typo. 2001-09-10 05:57:22 +00:00
Tatsuo Ishii 0d04ffeb0d Fix typo. 2001-09-10 05:46:41 +00:00
Tatsuo Ishii 16a7ec386e Fix initlocation messages 2001-09-10 05:20:23 +00:00
Bruce Momjian bb35e499ea Remove mention of INV_ARCHIVE. 2001-09-10 04:15:41 +00:00
Tatsuo Ishii ea41e77c22 fix typo. 2001-09-10 03:02:06 +00:00
Tatsuo Ishii aa398e5034 Add missing ';' 2001-09-10 02:46:18 +00:00
Bruce Momjian 98d04116d3 Update TODO list. 2001-09-10 02:02:37 +00:00
Bruce Momjian df7664c166 Update TODO list. 2001-09-10 00:14:29 +00:00
Peter Eisentraut d07454f559 Markup additions and spell check. (covers Admin Guide) 2001-09-09 23:52:12 +00:00
Peter Eisentraut 84956e71a3 Markup additions and spell check. (covers User's Guide) 2001-09-09 17:21:59 +00:00
Peter Eisentraut 1a63ef056e fix markup 2001-09-08 16:46:34 +00:00
Peter Eisentraut c0d4d5473a Make the world somewhat safe for (not from) DELETE FROM pg_shadow;
Assign the fixed user id 1 to the user created by initdb.
A stand-alone backend will always set the user id to 1.
(Consequently, the name of that user is no longer important.)

In stand-alone mode, the user id 1 will have implicit superuser
status, to allow repairs even if there are no users defined.

Print a warning message when starting in stand-alone mode when no
users are defined.

Disallow dropping the current user and session user.

Granting/revoking superuser status also grants/revokes usecatupd.
(Previously, it would never grant it back.  This could lead to "deadlocks".)

CREATE USER and CREATE GROUP will start allocating user ids at 100
(unless explicitly specified), to prevent accidental creation of a
superuser (plus some room for future extensions).
2001-09-08 15:24:00 +00:00
Bruce Momjian 20dd23c47a Update TODO list. 2001-09-08 02:42:53 +00:00
Bruce Momjian 1834987fb6 I've attached the fixed version of the patch below. After the
discussion on pgsql-hackers (especially the frightening memory dump in
<12273.999562219@sss.pgh.pa.us>), we decided that it is best not to
use identifiers from an untrusted source at all.  Therefore, all
claims of the suitability of PQescapeString() for identifiers have
been removed.

Florian Weimer
2001-09-07 22:02:32 +00:00
Bruce Momjian bd9b32803b Here is my much-promised patch to let people add UNIQUE constraints after
table creation time.  Big deal you say - but this patch is the basis of the
next thing which is adding PRIMARY KEYs after table creation time.  (Which
is currently impossible without twiddling catalogs)

Rundown
-------

* I have made the makeObjectName function of analyze.c non-static, and
exported it in analyze.h

* I have included analyze.h and defrem.h into command.c, to support
makingObjectNames and creating indices

* I removed the 'case CONSTR_PRIMARY' clause so that it properly fails and
says you can't add primary keys, rather than just doing nothing and
reporting nothing!!!

* I have modified the docs.

Algorithm
---------

* If name specified is null, search for a new valid constraint name.  I'm
not sure if I should "lock" my generated name somehow tho - should I open
the relation before doing this step?

* Open relation in access exclusive mode

* Check that the constraint does not already exist

* Define the new index

* Warn if they're doubling up on an existing index

Christopher Kings-Lynne
2001-09-07 21:57:53 +00:00
Bruce Momjian ca5134e694 Update SGML with new hostnames for CVS and CVSup. 2001-09-07 21:36:46 +00:00
Tom Lane 17c03b30b0 Revert treatment of NOTIFY in rules to its pre-7.1 behavior: notify will
occur unconditionally, even if the rule should otherwise execute
conditionally.  This is more useful than giving an error, even though it's
not truly the correct behavior.  Per today's pghackers discussion.
2001-09-07 20:52:31 +00:00
Bruce Momjian 0c585f7506 Update TODO list. 2001-09-07 18:50:07 +00:00
Bruce Momjian de77c55515 Update TODO list. 2001-09-07 01:29:50 +00:00
Bruce Momjian 4ab2393729 Update tab completion for \d*. 2001-09-07 01:24:18 +00:00
Bruce Momjian b579d4614f Update FAQ. 2001-09-07 00:51:10 +00:00
Tom Lane e67bb7af5a Missed a few places that referred to a compile-time limit on
max_connections.
2001-09-07 00:46:42 +00:00