1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00
Commit Graph

6249 Commits

Author SHA1 Message Date
d65a27f950 Hi,
I was able to crash postgres 6.5.3 when I did an 'alter user' command.
After I started a debugger I found the problem in the timezone handling
of
datetime (my Linux box lost its timezone information, that's how the
problem occurred).

Only 7 bytes are reserved for the timezone, without checking for
boundaries.

Attached is a patch that fixes this problem and emits a NOTICE if a
timezone is encountered that is longer than MAXTZLEN bytes, like this:

Jeroen van Vianen
1999-12-09 05:02:24 +00:00
469cf43fac Remove extra vacuum, from Peter. 1999-12-09 04:36:57 +00:00
0882951b0c Fixed concurrent visibility bug.
Jan
1999-12-08 20:41:22 +00:00
b7539d92f9 Fix indexing of cidr. 1999-12-08 11:37:38 +00:00
2192a92f3c Cleanup 1999-12-08 11:17:20 +00:00
0dec669a0f Change $< to $+ in scripts Makefile, and clean up pg_encoding if logic. 1999-12-08 10:29:55 +00:00
7cf0f634d5 *** empty log message *** 1999-12-08 09:52:29 +00:00
a010be7543 Peter's file removals. 1999-12-07 22:43:03 +00:00
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
54847b25d4 *** empty log message *** 1999-12-07 10:29:18 +00:00
04fa5ca544 Clean up memory leakage in find_inheritors() by using pg_list lists
(which are palloc'd) instead of DLLists (which are malloc'd).  Not very
significant, since this routine seldom has anything useful to do, but
a leak is a leak...
1999-12-07 04:09:39 +00:00
5ad4034a4c Again updated INSIDE TODO
Jan
1999-12-07 00:13:41 +00:00
70dd9e81af Added SET DEFAULT action for ON DELETE/UPDATE
Jan
1999-12-07 00:11:35 +00:00
3327730bbd Corrected TODO in source
Jan
1999-12-06 19:52:36 +00:00
2eb53e684c Added ON DELETE/UPDATE SET NULL
Jan
1999-12-06 19:50:49 +00:00
b8ef7e7f82 Completed FOREIGN KEY syntax.
Added functionality for automatic trigger creation during CREATE TABLE.

Added ON DELETE RESTRICT and some others.

Jan
1999-12-06 18:02:47 +00:00
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
b7f6168516 Fix markup (a couple of missing tags) and renormalize. 1999-12-06 16:38:25 +00:00
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
8ad4f99b73 Fix the case of -o given 1999-12-06 08:49:00 +00:00
8231a7ab20 Fix minor bugs 1999-12-06 08:35:34 +00:00
5b912b089c pg_ctl: a script to start/stop/restart and report status of postmaster. 1999-12-06 07:23:41 +00:00
169051afc9 Fix bugs regarding pid file. 1999-12-06 07:21:12 +00:00
1891f0e913 Update rules test for extra quoting in rule deparser. 1999-12-06 02:38:56 +00:00
53311358c2 Rule deparser needs to quote identifiers that are spelled the same as
SQL keywords.
1999-12-06 02:37:17 +00:00
7657bce7a0 Clean up doc/Makefile to install manual pages. 1999-12-05 21:23:00 +00:00
81c0383295 Fix echo -n and read -r in scripts. 1999-12-05 20:52:54 +00:00
60ae5ed037 Remove destroylang.sgml. 1999-12-05 20:29:18 +00:00
d7857e5713 Update. 1999-12-05 20:22:00 +00:00
66f8da0756 Update 1999-12-05 20:04:42 +00:00
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
9eb69977fe This *should* fix the large object segfault problem. Note linewrap may
be interfering with last line of patch.

Vince.
1999-12-05 19:29:37 +00:00
e2b71e0839 Re-add destroylang. 1999-12-04 12:50:54 +00:00
d9f61cfa15 Unlink the pid file if it's bogus (no associated process exists) 1999-12-04 08:23:43 +00:00
e958a30542 Update scripts from Peter. 1999-12-04 05:03:49 +00:00
240e4c98f5 New scripts for create/drop user/db from Peter Eisentraut 1999-12-04 04:53:22 +00:00
21b69148dc No distclean for pgaccess/Makefile. 1999-12-04 04:34:56 +00:00
573553296b Replace examples .H to .h. 1999-12-03 18:28:32 +00:00
5ada36c1e4 Rename libpq++.H to libpq++.h. 1999-12-03 17:35:05 +00:00
89ad160622 Arranged that plpgsql.so is used from new build, not installed
one in production PGLIB.

Jan
1999-12-03 12:47:43 +00:00
dde36bfb7c Create postmaster.pid and postmaster.opts under $PGDATA 1999-12-03 06:26:34 +00:00
9de156f116 Type 'socklen_t' might be the right way to declare getsockopt()'s last
parameter in some flavor of Unix, but Linux, HPUX, and SunOS all say
it's int.  For now I'm just going to make it int so that I can compile.
If the other way is actually necessary on some Unix somewhere, I guess
we will need a configure test...
1999-12-02 00:26:15 +00:00
8f9216313a Improve descriptions of date/time functions. 1999-12-01 18:03:26 +00:00
4901ff77bd Mention index name when reporting corruption. 1999-12-01 00:29:54 +00:00
1f64926953 Fix compile error on older patch. 1999-11-30 04:29:57 +00:00
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
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
d264b53d2f Rename readonly to onlyread in odbc. Use varargs properly. 1999-11-30 02:44:09 +00:00
daf6ffb6f0 Update TODO list. 1999-11-30 02:14:13 +00:00
63d7df4003 Small patch which fixes the ODBC driver so it doesn't segfault if:
You have CommLog and Debug enabled
You encounter in error in any operation (SQLConnect/SQLExec).
Previously, the extra logging didn't check for NULL pointers
when trying to print some of the strings- the socket error
message could frequently be NULL by design (if there was no socket
error)
and Solaris does not handle NULLS passed to things like printf
("%s\n",string);
gracefully.
This basically duplicates the functionality found in Linux where passing
a null pointer
to printf prints "(NULL)". No very elegant, but the logging is for debug
only anyway.

Dirk Niggemann
1999-11-29 23:42:03 +00:00