summaryrefslogtreecommitdiff
path: root/src/backend
AgeCommit message (Collapse)Author
2000-11-01Add runtime configuration options to control permission bits and groupPeter Eisentraut
owner of unix socket.
2000-11-01Forgot to check page LSN and unlock buffer in btree_xlog_delete - fixed.Vadim B. Mikheev
(Thanks to Tatsuo Ishii for finding bug)
2000-10-31Fix recovery cache code (thanks to Peter Eisentraut forVadim B. Mikheev
pointing to bug).
2000-10-31This is the minimal version of the Darwin support patch fromPeter Eisentraut
Bruce Hartzler <bruceh@mail.utexas.edu>. It contains shared library support, regression test map, and the usual template files. The dynamic loader is missing, the spin lock code apparently doesn't assemble due to syntax problems, and semaphores are to be hoped for from Apple.
2000-10-31Change internal string representation of BitString node to include aPeter Eisentraut
leading 'b', as it appears to be more convenient this way for the input and node functions.
2000-10-31Change the parser to convert SQL "position" and "substring" syntax toPeter Eisentraut
position() and substring() functions, so that it works transparently for bit types as well. Alias the text functions appropriately. Add position() for bit types. Add new constant node T_BitString that represents literals of the form B'1001 and pass those to zpbit type.
2000-10-30Disallow zero-length delimited identifier (per SQL).Peter Eisentraut
2000-10-30Add support for code conversion between Unicode and other encodings.Tatsuo Ishii
Supported encodings are: EUC_JP, EUC_CN, EUC_KR, EUC_TW, Shift JIS, Big5, ISO8859-[1-5]. TODO: testings! and documentations...
2000-10-30include pg_wchar.h to import a fucntion prototype of pg_mbcliplenTatsuo Ishii
2000-10-29WAL fixes.Vadim B. Mikheev
2000-10-29Remove special treatment of '|' operator, in the spirit of "sane" binaryPeter Eisentraut
operators.
2000-10-29USE_POSIX_TIME replaced by HAVE_TM_ZONE || HAVE_INT_TIMEZONE, which arePeter Eisentraut
equivalent. In linux.h there were some #undef HAVE_INT_TIMEZONE, which are useless because HAVE_TM_ZONE overrides it anyway, and messing with configure results isn't cool.
2000-10-28#define JMP_BUF has been unnecessary since the arrival of the sigsetjmpPeter Eisentraut
test.
2000-10-28Make initdb safe against usingPeter Eisentraut
a) mismatching backend program, by checking --version output b) mismatching bki files, by putting a version-identifying comment atop those files.
2000-10-28Back out change to gram.y for parens.Bruce Momjian
2000-10-28beos fixes from Cyril VELTERBruce Momjian
2000-10-28WALVadim B. Mikheev
2000-10-28Okay, here's my attempt at fixing the problems with parentheses inBruce Momjian
subqueries. It passes the normal 'runcheck' tests, and I've tried a few simple things like select 1 as foo union (((((select 2))))) order by foo; There are a few things that it doesn't do that have been talked about here at least a little: 1) It doesn't allow things like "IN(((select 1)))" -- the select here has to be at the top level. This is not new. 2) It does NOT preserve the odd syntax I found when I started looking at this, where a SELECT statement could begin with parentheses. Thus, (SELECT a from foo) order by a; fails. I have preserved the ability, used in the regression tests, to have a single select statement in what appears to be a RuleActionMulti (but wasn't -- the parens were part of select_clause syntax). In my version, this is a special form. This may cause some discussion: I have differentiated the two kinds of RuleActionMulti. Perhaps nobody knew there were two kinds, because I don't think the second form appears in the regression tests. This one uses square brackets instead of parentheses, but originally was otherwise the same as the one in parentheses. In this version of gram.y, the square bracket form treats SELECT statements the same as the other allowed statements. As discussed before on this list, psql cannot make sense out of the results of such a thing, but an application might. And I have designs on just such an application. ++ kevin o'gorman
2000-10-28Add --version and --help options to "postgres".Peter Eisentraut
2000-10-27Remove gcc-only macro definitionTatsuo Ishii
2000-10-27Disallow bits beyond the mask length for CIDR values, per discussionTom Lane
on pghackers. Arrange for the sort ordering of general INET values to be network part as major sort key, host part as minor sort key. I did not force an initdb for this change, but anyone who's running indexes on general INET values may need to recreate those indexes.
2000-10-26Re-implement LIMIT/OFFSET as a plan node type, instead of a hack inTom Lane
ExecutorRun. This allows LIMIT to work in a view. Also, LIMIT in a cursor declaration will behave in a reasonable fashion, whereas before it was overridden by the FETCH count.
2000-10-26Fix breakage I introduced yesterday in MULTIBYTE compilations.Tom Lane
Sorry 'bout that, chief...
2000-10-26Clean up gcc warnings in MULTIBYTE mode.Tom Lane
2000-10-25Clean up broken test for whether to wait for input in SSL case.Tom Lane
Per discussion with Magnus Hagander.
2000-10-25Ensure clause_selectivity() behaves sanely when examining an uplevel VarTom Lane
or a Var that references a subquery output.
2000-10-25Support SET/SHOW/RESET client_encoding and server_encoding even whenTom Lane
MULTIBYTE support is not compiled (you just can't set them to anything but SQL_ASCII). This should reduce interoperability problems between MB-enabled clients and non-MB-enabled servers.
2000-10-25Minor cleanup.Tom Lane
2000-10-25Accept CREATE DATABASE WITH ENCODING 'SQL_ASCII' even when MULTIBYTETom Lane
support is not present. This allows a non-MB server to load a pg_dumpall script produced by an MB-enabled server, so long as only ASCII encoding was used.
2000-10-24Check for SIGHUP and process config file updates just after waitingTom Lane
for input, not just before.
2000-10-24Do not execute fastpath function calls if in transaction ABORT state.Tom Lane
Just like queries, doing nothing is better than possibly getting weird error messages. Also, improve comments.
2000-10-24Integer binary operators, from Marko Kreen <marko@l-t.ee>. Renamed bitxorPeter Eisentraut
operator to '#' for consistency. Parser still needs work.
2000-10-24Fix AbortOutOfAnyTransaction logic to avoid notice aboutTom Lane
'AbortTransaction and not in in-progress state' when client disconnects just after an error. Notice seems pretty harmless, so I'm not going to worry about back-patching this into 7.0.* ...
2000-10-24WAL miscVadim B. Mikheev
2000-10-24Remove arbitrary limit on number of simultaneously open large objects.Tom Lane
This used to make some sense under the old implementation, but now an open LO is pretty darn cheap, so why restrict it?
2000-10-24Major overhaul of large-object implementation, by Denis Perchine withTom Lane
kibitzing from Tom Lane. Large objects are now all stored in a single system relation "pg_largeobject" --- no more xinv or xinx files, no more relkind 'l'. This should offer substantial performance improvement for large numbers of LOs, since there won't be directory bloat anymore. It'll also fix problems like running out of locktable space when you access thousands of LOs in one transaction. Also clean up cruft in read/write routines. LOs with "holes" in them (never-written byte ranges) now work just like Unix files with holes do: a hole reads as zeroes but doesn't occupy storage space. INITDB forced!
2000-10-23If a field is incompressible ('compressed' data is actually larger thanTom Lane
source, due to addition of header overhead), store it as plain data rather than pseudo-compressed data. This saves a few microseconds when reading it out, but much more importantly guarantees that the toaster won't actually expand tuples that contain incompressible data. That's essential to avoid 'Tuple too big' failures with large objects.
2000-10-23Back out xti.h portion of the patch.Bruce Momjian
2000-10-23New relcache hash table with RelFileNode as key to be usedVadim B. Mikheev
from bufmgr - it would be nice to have separate hash in smgr for node <--> fd mappings, but for the moment it's easy to add new hash to relcache. Fixed small bug in xlog.c:ReadRecord.
2000-10-22Some small polishing of Mark Hollomon's cleanup of DROP command: mightTom Lane
as well allow DROP multiple INDEX, RULE, TYPE as well. Add missing CommandCounterIncrement to DROP loop, which could cause trouble otherwise with multiple DROP of items affecting same catalog entries. Try to bring a little consistency to various error messages using 'does not exist', 'nonexistent', etc --- I standardized on 'does not exist' since that's what the vast majority of the existing uses seem to be.
2000-10-22Makeover for Unixware 7.1.1Peter Eisentraut
* Makefile: Add more standard targets. Improve shell redirection in GNU make detection. * src/backend/access/transam/rmgr.c: Fix incorrect(?) C. * src/backend/libpq/pqcomm.c (StreamConnection): Work around accept() bug. * src/include/port/unixware.h: ...with help from here. * src/backend/nodes/print.c (plannode_type): Remove some "break"s after "return"s. * src/backend/tcop/dest.c (DestToFunction): ditto. * src/backend/nodes/readfuncs.c: Add proper prototypes. * src/backend/utils/adt/numutils.c (pg_atoi): Cope specially with strtol() setting EINVAL. This saves us from creating an extra set of regression test output for the affected systems. * src/include/storage/s_lock.h (tas): Correct prototype. * src/interfaces/libpq/fe-connect.c (parseServiceInfo): Don't use variable as dimension in array definition. * src/makefiles/Makefile.unixware: Add support for GCC. * src/template/unixware: same here * src/test/regress/expected/abstime-solaris-1947.out: Adjust whitespace. * src/test/regress/expected/horology-solaris-1947.out: Part of this file was evidently missing. * src/test/regress/pg_regress.sh: Fix shell. mkdir -p returns non-zero if the directory exists. * src/test/regress/resultmap: Add entries for Unixware.
2000-10-22Fix incorrect logic for clearing BufferDirtiedByMe in ReleaseRelationBuffersTom Lane
and DropBuffers. Formerly we cleared the flag for each buffer currently belonging to the target rel or database, but that's completely wrong! Must look at BufferTagLastDirtied to see whether the BufferDirtiedByMe flag is relevant to target rel or not; this is *independent* of the current contents of the buffer. Vadim spotted this problem, but his fix was only partially correct...
2000-10-22Patch VACUUM problem with moving chain of update tuples when sourceTom Lane
and destination of a tuple lie on the same page. (Previously fixed in REL7_0 branch, now apply to current.)
2000-10-22Add new datlastsysoid to pg_database.Philip Warner
This field stores the last allocated OID after the database was created. Used by pg_dump in deciding what is user-defined vs. system-defined.
2000-10-22BACKED OUT.Bruce Momjian
> Regression tests opr_sanity and sanity_check are now failing. Um, Bruce, I've said several times that I didn't think Perchine's large object changes should be applied until someone had actually reviewed them.
2000-10-22Crash on NULL again in system table check.Bruce Momjian
2000-10-21Move DLSUFFIX, AROPT, and CFLAGS_SL settings from template toPeter Eisentraut
Makefile.port, since they are of no use to configure and much of the library magic happens in Makefile.port anyway. Use __alpha, not __alpha__, since the former is universally available. Remove -DNOFIXADE from the compile command line and put it in the port include file.
2000-10-21First a core dump which can be relieved by:Bruce Momjian
Patrick Welche
2000-10-21here it is as requested by Bruce.Bruce Momjian
I tested it restoring my database with > 100000 BLOBS, and dumping it out. But unfortunatly I can not restore it back due to problems in pg_dump. -- Sincerely Yours, Denis Perchine
2000-10-21WALVadim B. Mikheev