summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2000-02-26Shared-memory hashtables have non-extensible directories, which meansTom Lane
it's a good idea to choose the directory size based on the expected number of entries. But ShmemInitHash was using a hard-wired constant. Boo hiss. This accounts for recent report of postmaster failure when asking for 64K or more buffers.
2000-02-25*** empty log message ***Michael Meskes
2000-02-25*** empty log message ***Michael Meskes
2000-02-25Fix longstanding bug that kept functional indexes from working when youTom Lane
defaulted the opclass. This addresses TODO item * Allow creation of functional indexes to use default types (Does that make it a feature? Oh dear...)
2000-02-24Enabled regression driver to run without PGLIB set.Peter Eisentraut
2000-02-24Suppress timespan and datetime ops from being brought in via pg_dumpBruce Momjian
from previous release.
2000-02-24Add missing files like foreign key regression tests and config.h.win32.Bruce Momjian
2000-02-24 The following is required in order to make beta1 compile on the Win32Bruce Momjian
platform (psql and libpq): The file "config.h.win32" in the include\ directory (from my patch from 2000-01-18) is missing from the tree. It needs to be put back :-) The following patch has to be applied in the interfaces\libpq directory. //Magnus
2000-02-24Tweak libpq so that if a backend ERROR message arrives while libpqTom Lane
thinks the connection is idle, the error message is displayed as if it were a NOTICE. This seems better than dropping the message on the floor ... particularly if the message is the backend telling us why it's about to close the connection. The previous behavior was Backend message type 0x45 arrived while idle pqReadData() -- backend closed the channel unexpectedly. which is not real helpful.
2000-02-24Check pending cancel request before waiting for lockHiroshi Inoue
2000-02-24Add the check CommonSpecialPortal in use(my fault)Hiroshi Inoue
2000-02-24Add numeric <-> int8 and numeric <-> int2 conversion functions, as wellTom Lane
as a unary minus operator for numeric. Now that long numeric constants will get converted to NUMERIC in early parsing, it's essential to have numeric->int8 conversion to avoid 'can't convert' errors on undecorated int8 constants. Threw in the rest for completeness while I was in the area. I did not force an initdb for this, since the system will still run without the new pg_proc/pg_operator entries. Possibly I should've.
2000-02-24Make make_const() check the size and precision of a T_Float Value,Tom Lane
and produce either FLOAT8 or NUMERIC output depending on whether the value fits in a float8 or not. This is almost back to the way the code was before I changed T_Float, but there is a critical difference: now, when a numeric constant doesn't fit in float8, it will be treated as type NUMERIC instead of type UNKNOWN.
2000-02-24int8in failed to detect overflow; it really should.Tom Lane
2000-02-23Fix plpsql for bsdi.Bruce Momjian
2000-02-23*** empty log message ***Michael Meskes
2000-02-231. miscadmin.h needs to include sys/types.h for a definition of pid_tBruce Momjian
2. Regression tests fail for types int2 and int4 (which can easily be fixed by adding entries to resultmap) aswell as float8 and geometry, where floating point numbers appear to be rounded a little differently than in your expected results (besides that I also need the positive zeros file). I'm including a patch for the first 2, but I don't know whether the latter two are actually a bug in postgres or a bug in the OS or even allowed difference. I'm including my results for reference. Rolf Grossmann
2000-02-22Well, here's the first pass on regressionBruce Momjian
tests for the Foreign Key support in 7.0 which was made against a CVS copy from this afternoon. This modifies src/test/regress/sql/run_check.tests src/test/regress/sql/alter_table.sql src/test/regress/expected/alter_table.out src/test/regress/sql/foreign_key.sql src/test/regress/expected/foreign_key.out sszabo@bigpanda.co
2000-02-22*** empty log message ***Michael Meskes
2000-02-22Change cancel while waiting-for-lock stuff.Hiroshi Inoue
2000-02-22First post-beta1 bug fix :-(. Silly typo in new coding for doNegateTom Lane
failed to negate a negative value back to positive, so '- - 123.45' did the wrong thing.
2000-02-21Quick hack solution so that pg_dump of views works. Needs repair afterTom Lane
Thomas gets back, but better this than nonfunctional pg_dump in the beta.
2000-02-21Fixed psql's Control-C handling when COPY in progressPeter Eisentraut
2000-02-21Oops, commited a test version of this file by accident. Revert.Tom Lane
2000-02-21Change parse-time representation of float literals (which include oversizeTom Lane
integers) to be strings instead of 'double'. We convert from string form to internal representation only after type resolution has determined the correct type for the constant. This eliminates loss-of-precision worries and gets rid of the change in behavior seen at 17 digits with the previous kluge.
2000-02-21To avoid confusion during early beta testing, commit the current rulesTom Lane
test output as expected output. We'll probably want to change this again after something's done about the verbosity of column alias display.
2000-02-21Clean up temp file in 'make clean'.Tom Lane
2000-02-21Avoid race conditions in detection of EINPROGRESS during connect().Jan Wieck
Jan
2000-02-21Fix "Invalid XID in t_cmin" error in vacuum.Hiroshi Inoue
2000-02-21Clean up some really grotty coding in catcache.c, improve hashingTom Lane
performance in catcache lookups.
2000-02-21fix the TODOHiroshi Inoue
* Allow PQrequestCancel() to terminate when in waiting-for-lock state Changes are limited to BACKEND,however.
2000-02-21Fixes for \encoding command.Tatsuo Ishii
1) freeing null pointer 2) invalid encoding info may be stored into psql variable 3) fix indentation
2000-02-21Tweak planner to use OFFSET+LIMIT, not just LIMIT, as estimate of theTom Lane
portion of the query result that will be retrieved. As far as I could tell, the consensus was that we should let the planner do the best it can with a LIMIT query, and require the user to add ORDER BY if he wants consistent results from different LIMIT values.
2000-02-20Further cleanups for type coercion: treat the locution typename(argument)Tom Lane
as representing a type coercion request in more cases than we did before. It will work now whenever no underlying function is required, ie if the coercion is binary-compatible or if the argument is a previously untyped string constant. Otherwise, you still need a real function to exist.
2000-02-20Create a new expression node type RelabelType, which exists solely toTom Lane
represent the result of a binary-compatible type coercion. At runtime it just evaluates its argument --- but during type resolution, exprType will pick up the output type of the RelabelType node instead of the type of the argument. This solves some longstanding problems with dropped type coercions, an example being 'select now()::abstime::int4' which used to produce date-formatted output, not an integer, because the coercion to int4 was dropped on the floor.
2000-02-20Moved psql \eset and \eshow to \encodingPeter Eisentraut
Improved psql's Ctrl-C handling Fixed configure test for sigsetjmp that now even recognizes it if it's a macro
2000-02-20Fix broken list-slinging logic in func_select_candidate andTom Lane
agg_select_candidate, which could cause them to keep more candidates than they should and thus fail to select a single match. I had previously fixed the identical bug in oper_select_candidate, but didn't realize that the same error was repeated over here. Also, repair func_select_candidate's curious notion that it could scribble on the input type-OID vector. That was causing failure to apply necessary type coercion later on, leading to malfunction of examples such as select date('now').
2000-02-20Even after the great date/time consolidation, TypeCategory() was stillTom Lane
a few bricks shy of a load concerning knowing all the date/time types. This is real bad because it interferes with func_select_candidate()'s willingness to disambiguate functions --- func_select_candidate() will punt unless all the available choices have the same type category. I think this whole mechanism needs redesigned, but in the meantime this is a needed patch.
2000-02-20Reduce proc_exit(1) to proc_exit(0) for errors detected in backendTom Lane
command line processing. As it stood, a bogus PGOPTIONS value from a client would force a database system restart. Not bad as a denial- of-service attack...
2000-02-20Fix missing \n in some psql_error calls.Tom Lane
2000-02-20Add a simple regress test for SERIAL --- it's not much,Tom Lane
but it's better than no test at all...
2000-02-20Fix SERIAL columns, which Thomas inadvertently broke parsing of.Tom Lane
Revised code probably accepts some silly combinations, but that's better than not accepting valid ones.
2000-02-19Repair longstanding violation of SQL92 semantics: GROUP BY wouldTom Lane
interpret a column name as an output column alias (targetlist AS name), ather than a real column name as it ought to. According to the spec, only ORDER BY should look at output column names. I left in GROUP BY's willingness to use an output column number ('GROUP BY 2'), even though this is also contrary to the spec --- again, only ORDER BY is supposed to accept that. But there is no possible reason to want to GROUP BY an integer constant, so keeping this old behavior won't break any SQL-compliant queries. DISTINCT ON will behave the same as GROUP BY. Change numerology regress test, which depended on the incorrect behavior.
2000-02-19Apply Keith Park's updates for expected/horology-solaris-1947.out. FixTom Lane
erroneous expected output for RESET DateStyle: should be ISO now. Fix run_check.sh so that test postmaster is started with PGDATESTYLE=ISO, else the horology test won't pass.
2000-02-19Get rid of postgres.c's separate parsing logic for PGDATESTYLE env.Tom Lane
variable, instead calling same code in variable.c that is used to parse SET DATESTYLE. Fix bug: although backend's startup datestyle had been changed to ISO, 'RESET DATESTYLE' and 'SET DATESTYLE TO DEFAULT' didn't know about it. For consistency I have made the latter two reset to the PGDATESTYLE-defined initial value, which may not be the same as the compiled-in default of ISO.
2000-02-19Accept the noise-word ALL in aggregate function invocations for SQL92Tom Lane
compliance. Wish they were all that easy...
2000-02-19plperl's makefile tried to use perl's choice of compiler withTom Lane
postgres's choice of compiler options. Tres uncool.
2000-02-19HP's compiler objects (quite rightly too) to 'static void foo();'Tom Lane
followed by 'extern void foo() { ... }'.
2000-02-19First workaround solution for Jan's column constraint attributes.Thomas G. Lockhart
2000-02-19Fix nasty bug in setting client_encodingTatsuo Ishii