Commit Graph

2130 Commits

Author SHA1 Message Date
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
Bruce Momjian 4d8ce9bba3 Update FAQ. 2001-09-07 00:46:00 +00:00
Bruce Momjian 36ed0c98bd Update FAQ. 2001-09-07 00:45:14 +00:00
Bruce Momjian 1fbb2d9cc8 Update transactions for nested idea. 2001-09-06 20:41:30 +00:00
Bruce Momjian 68a3d2ef83 Update TODO list. 2001-09-06 20:40:05 +00:00
Bruce Momjian e64ca0576b Update TODO list. 2001-09-06 20:37:14 +00:00
Bruce Momjian e2b668bb00 Update TODO list. 2001-09-06 20:11:07 +00:00
Bruce Momjian e4cfff6520 Update TODO list. 2001-09-06 16:59:45 +00:00
Bruce Momjian e9dc342e33 Add mutex test. 2001-09-06 16:51:12 +00:00
Bruce Momjian 11808a9faa Update TODO list. 2001-09-06 16:50:40 +00:00
Bruce Momjian 4f952aaa5b Add to syntax error reporting. 2001-09-06 16:30:46 +00:00
Peter Eisentraut 22ae53d4cd Move the "how to write a PL call handler" parts from the CREATE LANGUAGE
man page to the Programmer's Guide.
2001-09-06 10:28:39 +00:00
Bruce Momjian 311eef41ea Update TODO list. 2001-09-06 03:46:09 +00:00
Bruce Momjian 04c1f72920 PAM authentication:
> pam_strerror() should be used a few more times, rather than just saying
> "Error!".  Also, the configure.in snippet seems wrong.  You add
> -I$pam_prefix/include/security to $INCLUDES and then you #include
> <security/pam_appl.h>.  This whole thing is probably unnecessary, since
> PAM is a system library on the systems where it exists, so the headers
> and libraries are found automatically, unlike OpenSSL and
> Kerberos.

See attached revised patch. (I'm sure the configure.in stuff can be done
right/better, I'm just not enough of a autoconf guru to know what to
change it to.)

Dominic J. Eidson
2001-09-06 03:23:38 +00:00
Bruce Momjian 2a34134b6c - new to_char(interval, text)
- new millisecond (ms) and microsecond (us) support
 - more robus parsing from string - used is separator checking for
   non-exact formats like to_date('2001-9-1', 'YYYY-MM-DD')
 - SGML docs are included

Karel Zak
2001-09-06 03:22:42 +00:00
Bruce Momjian 16910e44de Next version of patch.
Now with documentation update and disabling of UTF conversion for Tcl <=8.0

On Fri, 24 Aug 2001, Vsevolod Lobko wrote:

> On Thu, 23 Aug 2001, Tom Lane wrote:
>
> > > Is this looks better?
> >
> > It does, but one small gripe: the lack of semicolons will probably cause
> > pg_indent to mess up the indentation.  (I know emacs' autoindent mode
> > will not work nicely with it, either.)  Please set up the macros so that
> > you write
> >
> >                         UTF_BEGIN;
> >                         Tcl_DStringAppend(&unknown_src, UTF_E2U(part), -1);
> >                         UTF_END;
> >
> > and then I'll be happy.
>
> Attached revised patch
>
> > Your point about overhead is a good one, so I retract the gripe about
> > using a configure switch.  But please include documentation patches to
> > describe the configure option in the administrator's guide (installation
> > section).
>
> This patch still uses configure switch for enabling feature.
>
> For enabling based on tcl version we have 2 posibilites:
>  1) having feature enabled by default, but in pltcl.c check for tcl
>     version and disable it for old versions
>  2) enable or disable at configure time based on tcl version, but there
>     are problem - current configure don't checks for tcl version at all
>     and my configure skills not enought for adding this
>

Vsevolod Lobko
2001-09-06 02:56:32 +00:00
Tom Lane 6c91eef7b7 Fix handling of pg_type.typdefault per bug report from Dave Blasby.
If there's anyone out there who's actually using datatype-defined
default values, this will be an incompatible change in behavior ...
but the old behavior was so broken that I doubt anyone was using it.
2001-09-06 02:07:42 +00:00
Bruce Momjian c2ed891512 Overhaul ecpg manual page.
Update Italian jdbc error messages.
2001-09-06 00:23:42 +00:00
Bruce Momjian 0cae3ecf55 Update TODO list. 2001-09-04 16:27:18 +00:00
Bruce Momjian 711aa6ba2c Add java mention. 2001-09-04 15:40:18 +00:00
Bruce Momjian 2ec5eedd4f Update FAQ. 2001-09-04 05:14:36 +00:00
Bruce Momjian 9d634d3917 Update FAQ. 2001-09-04 05:06:20 +00:00
Bruce Momjian 9b77572662 Add mention of bytea data type and escaping rules. 2001-09-04 03:17:54 +00:00
Peter Eisentraut 3c59a9e3b7 Bring references to ipcclean in sync with reality. 2001-09-04 00:22:34 +00:00
Peter Eisentraut ff5e8a26a2 Fix typo. 2001-09-04 00:18:18 +00:00
Bruce Momjian 34f80de0e6 Add items. 2001-09-03 21:38:37 +00:00
Bruce Momjian 2c1b5de4c0 Add two emails about TODO.detail PL/java discussion. 2001-09-03 21:17:53 +00:00
Peter Eisentraut 89a1ea4207 Put some kind of grammatical uniformity in the <refpurpose> lines. 2001-09-03 12:57:50 +00:00
Peter Eisentraut 60ce9e9279 New blood and fresh air for tutorial 2001-09-02 23:27:50 +00:00
Tatsuo Ishii 5608f13028 The actual execution results are different from examples. 2001-08-31 07:45:09 +00:00
Tatsuo Ishii a32624b45c Actual results are different from examples 2001-08-31 07:30:05 +00:00
Tatsuo Ishii 933fd7e2de Add ; to the create operator. 2001-08-31 04:17:13 +00:00
Tatsuo Ishii 94427b1914 Since 7.1 the data type size of TIME has been increased. 2001-08-31 01:55:25 +00:00
Tatsuo Ishii 7ecff3f39c Fix typo. 2001-08-30 08:16:42 +00:00
Peter Eisentraut b1a38a4380 Install the SQL command man pages into a section appropriate for each
system.  Some systems did not understand the 'l' section, and in general
it wasn't entirely appropriate.

On SCO OpenServer, the man pages won't be installed at all until someone
figures out their man system.
2001-08-29 19:14:40 +00:00
Peter Eisentraut 2c6b599c04 Remove useless xreflabel. 2001-08-29 19:11:00 +00:00
Peter Eisentraut f5944af8ba Include directory rearrangement
Client headers are no longer in a subdirectory, since they have been made
namespace-clean.

Internal libpq headers are in a private subdirectory.

Server headers are in a private subdirectory.  pg_config has a new option
to point there.
2001-08-28 14:20:28 +00:00
Tom Lane a1e28d3505 Fix some typos. 2001-08-27 23:42:34 +00:00
Tom Lane 8e0d642c9b Documentation for transaction-ID-wraparound changes. Add a chapter to
the Admin Guide about routine maintenance tasks.  Currently this only
discusses the various reasons for doing VACUUM, but perhaps it could be
fleshed out with topics like log rotation.
2001-08-26 21:17:12 +00:00
Bruce Momjian e1635b4402 Back out "Remove outdated documentation section of ecpg." for Michael. 2001-08-26 17:04:02 +00:00
Tom Lane bc7d37a525 Transaction IDs wrap around, per my proposal of 13-Aug-01. More
documentation to come, but the code is all here.  initdb forced.
2001-08-26 16:56:03 +00:00
Bruce Momjian d1ee78f296 Document single-letter createuser encryption options. 2001-08-26 04:20:36 +00:00