Commit Graph

3639 Commits

Author SHA1 Message Date
Bruce Momjian 9438fe5d09 autoconf 1998-08-23 22:36:41 +00:00
Bruce Momjian 07ae591c87 Attached is a patch that uses autoconf to determine whether there
is a working 64-bit-int type available.

In playing around with it on my machine, I found that gcc provides
perfectly fine support for "long long" arithmetic ... but sprintf()
and sscanf(), which are system-supplied, don't work :-(.  So the
autoconf test program does a cursory test on them too.

If we find that a lot of systems are like this, it might be worth
the trouble to implement binary<->ASCII conversion of int64 ourselves
rather than relying on sprintf/sscanf to handle the data type.

			regards, tom lane
1998-08-23 22:25:54 +00:00
Bruce Momjian 9cad9febb1 cleanup 1998-08-23 14:43:46 +00:00
Bruce Momjian 985f4ab98a fulltext copy script. 1998-08-22 12:54:58 +00:00
Bruce Momjian 863a62064c As proposed, here is the current version of PL/pgSQL. The
test isn't that complete up to now,  but  I  think  it  shows
    enough of the capabilities of the module.

    The  Makefile  assumes  it  is  located  in a directory under
    pgsql/src/pl.   Since   it   includes   Makefile.global   and
    Makefile.port  and doesn't use any own compiler/linker calls,
    it should build on most of our supported  platforms  (I  only
    tested  under Linux up to now).  It requires flex and bison I
    think. Maybe we should ship prepared gram.c etc. like for the
    main parser too?


Jan
1998-08-22 12:38:39 +00:00
Bruce Momjian 212f7bdfe3 Patch to allow createuser options from the command line. 1998-08-22 05:19:35 +00:00
Bruce Momjian 99a099d436 With the attached patch, I have verified that long (> 8char anyway)
usernames and passwords work correctly in both "password" and
"crypt" authorization mode.  NOTE: at least on my machine, it seems
that the crypt() routines ignore the part of the password beyond
8 characters, so there's no security gain from longer passwords in
crypt auth mode.  But they don't fail.

The login-related part of psql has apparently not been touched
since roughly the fall of Rome ;-).  It was going through huge
pushups to get around the lack of username/login parameters to
PQsetdb.  I don't know when PQsetdbLogin was added to libpq, but
it's there now ... so I was able to rip out quite a lot of crufty
code while I was at it.

It's possible that there are still bogus length limits on username
or password in some of the other PostgreSQL user interfaces besides
psql/libpq.  I will leave it to other folks to check that code.

			regards, tom lane
1998-08-22 04:49:05 +00:00
Bruce Momjian c0d730460f The attached patch fixes a problem that I seem to have introduced
with the new support for asynchronous NOTIFY in libpgtcl.  With
the current sources, if the backend disconnects unexpectedly then
the tcl/tk application coredumps when control next reaches the idle
loop.  Oops.

			regards, tom lane
1998-08-22 04:34:22 +00:00
Bruce Momjian a738478ad8 Here are additional patches for the UnixWare 7 port.
Summary of changes:

In pqcomm.h, use the SUN_LEN macro if it is defined to calculate
the size of the sockaddr_un structure.

In unixware.h, drop the use of the UNIXWARE macro.  Everything can
be handled with the USE_UNIVEL_CC and DISABLE_COMPLEX_MACRO macros.

In s_lock.h, remove the reference to the UNIXWARE macro (see above).

In the unixware template, add the YFLAGS:-d line.

In various makefile templates, add (or cleanup) unixware and univel
port specific information.

-- Billy G. Allie
1998-08-22 04:24:41 +00:00
Bruce Momjian 9005da08de Fix display in initdb. 1998-08-21 23:22:36 +00:00
Bruce Momjian c8b4d4d000 Fix for index problem that showed up in constraint test. 1998-08-20 23:01:24 +00:00
Bruce Momjian 8ae24a7566 update fixes. 1998-08-20 22:24:11 +00:00
Bruce Momjian 4a70002149 fix for index problem. 1998-08-20 22:07:46 +00:00
Bruce Momjian 31309423c9 Another vacuum fix. 1998-08-20 15:16:59 +00:00
Bruce Momjian 09e125084a Fix for vacuum introduced today. 1998-08-19 23:48:23 +00:00
Bruce Momjian a4d3695f28 Vacuum cleanup. 1998-08-19 22:01:18 +00:00
Bruce Momjian bd5aaca391 Vacuum fix. Was modifying cache. 1998-08-19 19:59:49 +00:00
Bruce Momjian 9c4eceb4e3 Fix for vacuum updating problem. 1998-08-19 15:47:36 +00:00
Bruce Momjian 5fbbd364e8 fix for ecpg corruption 1998-08-19 14:51:31 +00:00
Bruce Momjian 7971539020 heap_fetch requires buffer pointer, must be released; heap_getnext
no longer returns buffer pointer, can be gotten from scan;
	descriptor; bootstrap can create multi-key indexes;
pg_procname index now is multi-key index; oidint2, oidint4, oidname
are gone (must be removed from regression tests); use System Cache
rather than sequential scan in many places; heap_modifytuple no
longer takes buffer parameter; remove unused buffer parameter in
a few other functions; oid8 is not index-able; remove some use of
single-character variable names; cleanup Buffer variables usage
and scan descriptor looping; cleaned up allocation and freeing of
tuples; 18k lines of diff;
1998-08-19 02:04:17 +00:00
Marc G. Fournier 31de2c9461 Fix for SNPRINTF test in configure
From: Tom Lane <tgl@sss.pgh.pa.us>
1998-08-19 00:16:04 +00:00
Marc G. Fournier 1a77894d46 Add rule tests to regression tests... 1998-08-19 00:14:39 +00:00
Marc G. Fournier 338c54cbc1 From: Jan Wieck <jwieck@debis.com>
Hi,

    as  proposed here comes the first patch for the query rewrite
    system.

  <for details, see archive dated Mon, 17 Aug 1998>
1998-08-18 00:49:04 +00:00
Thomas G. Lockhart fde6526753 Make small sentence cleanups. Add missing formatting for program example. 1998-08-17 16:22:58 +00:00
Thomas G. Lockhart 28742a182e Rename Id tags to eliminate the trailing "-1" field. This propagates
into cleaner html output file names.
1998-08-17 16:21:05 +00:00
Thomas G. Lockhart 629d53c974 Move SQL reference pages up into the User's Guide. 1998-08-17 16:20:33 +00:00
Thomas G. Lockhart cbed406368 Small sentence cleanups. Add tags for acronyms and products. 1998-08-17 16:18:13 +00:00
Thomas G. Lockhart 4e76753091 Bring document list closer to up to day.
Add a note on sgml-tools that they are now working with jade and so
 may become the toolset of choice in the future.
1998-08-17 16:17:07 +00:00
Thomas G. Lockhart 9ce4ae80dd Enhanced the allowed constraint syntax, so remove mention of the problem. 1998-08-17 16:15:31 +00:00
Thomas G. Lockhart 40aa761d4c Update Id fields in header tags. Rename the TUTORIAL tag to avoid
conflicting with the tutorial.sgml container document.
1998-08-17 16:14:06 +00:00
Thomas G. Lockhart 0463ee00ae Fix small typo. 1998-08-17 16:12:35 +00:00
Thomas G. Lockhart 620c2c362f Update the random test so it should succeed most of the time.
Instead of directly showing the random results, test the results
 for the expected behavior (range and randomness).
1998-08-17 16:11:35 +00:00
Thomas G. Lockhart a8bcb8bc58 Update for changes to gram.y. 1998-08-17 16:08:54 +00:00
Thomas G. Lockhart 73fae67a0d Allow NOT LIKE, IN, NOT IN, BETWEEN, and NOT BETWEEN expressions
in constraint clauses.
 IN and NOT IN only allow constaints, not subselects.
Jose' Soares' new reference docs pointed out the discrepency.
 Updating the docs too...
1998-08-17 16:08:34 +00:00
Thomas G. Lockhart 15f82836bf Use the parser macro IS_BINARY_COMPATIBLE() to allow more success
in type checking for DEFAULT contraint clauses.
Could do more type coersion later...
1998-08-17 16:03:31 +00:00
Marc G. Fournier 91162057ae From: Tom Lane <tgl@sss.pgh.pa.us>To: pgsql-patches@postgreSQL.org
Sigh.  That tweak needs a tweak --- I didn't realize that ".DEFAULT"
processing ignores dependencies, at least in the version of gmake I
have here (not sure if it's a bug or not).  Apply this patch aftermy previous one...
1998-08-17 03:53:37 +00:00
Marc G. Fournier cf9ecbdabb Just a couple of "after-commit" cleanups... 1998-08-17 03:52:36 +00:00
Marc G. Fournier 9312033071 Date: Sun, 16 Aug 1998 14:56:48 -0400
From: Tom Lane <tgl@sss.pgh.pa.us>
Attached is a patch for this weekend's work on libpq.  I've dealt
with several issues:

        <for details: see message, in pgsql-patches archive for above data>
1998-08-17 03:50:43 +00:00
Marc G. Fournier 3fa676a74c From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
Here is some more contrib-fodder, based on TIH's IP address type,
for ISBN and ISSN identifiers (which I just happened to need to keep
track of the things in my library).
1998-08-17 03:35:05 +00:00
Thomas G. Lockhart efc9a91db9 Allow a null pointer to be returned from get_opname().
Previously, had thrown an error, but looking for alternate strategies
 for table indices utilization would prefer to continue.
1998-08-16 05:38:41 +00:00
Thomas G. Lockhart 4c91723d35 Check for null pointer returned from get_opname().
Don't bother checking for alternate strategies if so
 since it was more likely a function or some other non-operator anyway.
1998-08-16 05:37:04 +00:00
Thomas G. Lockhart 0f19904360 Check for null pointer returned from get_opname(). 1998-08-16 05:35:35 +00:00
Thomas G. Lockhart 402b47cffa Disable not-ready-to-use support code for the line data type.
Bracket things with #ifdef ENABLE_LINE_TYPE.
The line data type has always been used internally to support other types,
 but I/O routines have never been defined for it.
1998-08-16 04:06:55 +00:00
Thomas G. Lockhart 9e1d532027 This README only mentions nroff problems with page.5, which has been
removed from the man pages and put into the new sgml docs.
1998-08-15 16:39:21 +00:00
Thomas G. Lockhart 4ab9ac79ba Include a sentence in the top pointing to the new docs.
pgbuiltin.3 is obsolete for sure, and libpq.3 can become so since the
 size and scope of this man page is not appropriate in a man page format.
1998-08-15 16:36:22 +00:00
Thomas G. Lockhart b55a020aca Converted to page.sgml. Not needed in a man page. 1998-08-15 13:01:26 +00:00
Thomas G. Lockhart 223fa7ff4a Information moved to sgml source files.
The "Oracle compatibility" page should have always been in with functions
 anyway. The BKI information is not really appropriate for a man page.
1998-08-15 07:03:59 +00:00
Thomas G. Lockhart a80f034dc2 Make minor formatting improvements to statement synopses.
Make sure all files end with a newline.
1998-08-15 07:00:37 +00:00
Thomas G. Lockhart a9e9f59308 Update for new information on PQsetNoticeProcessor().
Now back in sync with libpq.3 man page, which should be obsolete soon.
1998-08-15 06:56:36 +00:00
Thomas G. Lockhart c4bf0c0d6a Change Id field in chapter tag to change html output file name. 1998-08-15 06:55:05 +00:00