- 24 Feb, 2000 5 commits
- 
- 
Hiroshi Inoue authored
- 
Hiroshi Inoue authored
- 
Tom Lane authoredas 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. 
- 
Tom Lane authoredand 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. 
- 
Tom Lane authored
 
- 
- 23 Feb, 2000 3 commits
- 
- 
Bruce Momjian authored
- 
Michael Meskes authored
- 
Bruce Momjian authored2. 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 
 
- 
- 22 Feb, 2000 7 commits
- 
- 
Bruce Momjian authoredtests 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 
- 
Michael Meskes authored
- 
Bruce Momjian authored
- 
Bruce Momjian authored
- 
Hiroshi Inoue authored
- 
Bruce Momjian authored
- 
Tom Lane authoredfailed to negate a negative value back to positive, so '- - 123.45' did the wrong thing. 
 
- 
- 21 Feb, 2000 15 commits
- 
- 
Tom Lane authoredThomas gets back, but better this than nonfunctional pg_dump in the beta. 
- 
Peter Eisentraut authored
- 
Tom Lane authored
- 
Tom Lane authoredintegers) 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. 
- 
Tom Lane authoredtest output as expected output. We'll probably want to change this again after something's done about the verbosity of column alias display. 
- 
Bruce Momjian authored
- 
Tom Lane authored
- 
Jan Wieck authoredJan 
- 
Hiroshi Inoue authored
- 
Tom Lane authoredperformance in catcache lookups. 
- 
Hiroshi Inoue authored* Allow PQrequestCancel() to terminate when in waiting-for-lock state Changes are limited to BACKEND,however. 
- 
Tatsuo Ishii authored1) freeing null pointer 2) invalid encoding info may be stored into psql variable 3) fix indentation 
- 
Tom Lane authored
- 
Tom Lane authoredof LIMIT, and fix a few other glitches too. 
- 
Tom Lane authoredportion 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. 
 
- 
- 20 Feb, 2000 10 commits
- 
- 
Tom Lane authoredas 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. 
- 
Tom Lane authoredrepresent 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. 
- 
Peter Eisentraut authored
- 
Peter Eisentraut authoredImproved psql's Ctrl-C handling Fixed configure test for sigsetjmp that now even recognizes it if it's a macro 
- 
Tom Lane authoredagg_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').
- 
Tom Lane authoreda 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. 
- 
Tom Lane authoredcommand 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... 
- 
Tom Lane authored
- 
Tom Lane authoredbut it's better than no test at all... 
- 
Tom Lane authoredRevised code probably accepts some silly combinations, but that's better than not accepting valid ones. 
 
-