summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2001-04-19Kluge solution for Alex Pilosov's report of problems with whole-tupleTom Lane
function arguments in join queries: copy the tuples into TransactionCommandContext so they don't get recycled too soon. This is horrid, but not any worse than 7.0 or before, which also leaked such tuples until end of query. A proper fix will require allowing tuple datums to be physically stored inside larger tuple datums, which opens up a bunch of issues that can't realistically be solved for 7.1.1.
2001-04-19Add a crash gurard to pg_encoding_mblen in case of an invalid encodingTatsuo Ishii
given.
2001-04-18Further tweaking of error messages for cases involving attributes &Tom Lane
functions of join or subselect aliases. It'd be awfully nice if this code knew for sure whether it was dealing with 'x.f' or 'f(x)' syntax; maybe we can fix that in a future cycle.
2001-04-18Repair misbehavior of \! with immediately following argument that containsPeter Eisentraut
spaces (e.g., '\!ls -l'). Also correct a comment.
2001-04-18Make the world safe for passing whole rows of views to functions. ThisTom Lane
already worked fine for whole rows of tables, but not so well for views...
2001-04-18Make rule lister do the right thing with Vars representing whole tuples.Tom Lane
2001-04-17The renewal of README thanks to Dave Page.Hiroshi Inoue
2001-04-17Add some defenses to guard against case where a rule refers to a tableTom Lane
or view that's been dropped and then recreated with the same name (but, perhaps, different columns). Eventually we'd like to support this but for now all we can do is fail cleanly, rather than possibly coredumping if we proceed using the obsolete rule.
2001-04-16Avoid reversing user-given order of WHERE clauses while attaching clausesTom Lane
to specific base or join RelOptInfo nodes during planning. This preserves the more-intuitive behavior of 7.0.* --- if you write an expensive clause (such as a sub-select) last, it should get evaluated last. Someday we ought to try to have some intelligence about the order of evaluation of WHERE clauses, but for now we should not override what the user wrote.
2001-04-16Correction for mathematical properties in Unicode converison maps.Tatsuo Ishii
Patches contributed by Eiji Tokuya (e-tokuya@sankyo-unyu.co.jp)
2001-04-16getdatabaseencoding() and PG_encoding_to_char() were being sloppy aboutTom Lane
converting char* strings to type 'name'. Imagine my surprise when 7.1 release coredumped upon start when compiled --enable-multibyte ...
2001-04-16Remove error report from pq_endmessage when pq_putmessage fails. TheTom Lane
only possible failure is in pq_flush, which will log a (better!) report anyway --- so pq_endmessage is just cluttering the log with a redundant entry. This matters when a client crashes partway through a large query, since we will emit many broken-pipe reports before finishing the query and exiting.
2001-04-15Add LDFLAGS_SL to AIX shlib building command, per report fromTom Lane
Rocco Altier <roccoa@routescape.com>.
2001-04-15Constant expressions that appear in ORDER BY, GROUP BY, DISTINCT ONTom Lane
lists should be reverse-compiled into targetlist index numbers, because that's the only interpretation the parser allows for a constant in these clauses. (Ergo, the only way they could have gotten into the list in the first place is to have come from the targetlist; so this should always work.) Per problem report from Peter E.
2001-04-15Prevent generation of invalid plans for RIGHT or FULL joins with multipleTom Lane
join clauses. The mergejoin executor wants all the join clauses to appear as merge quals, not as extra joinquals, for these kinds of joins. But the planner would consider plans in which partially-sorted input paths were used, leading to only some of the join clauses becoming merge quals. This is fine for inner/left joins, not fine for right/full joins.
2001-04-15If the password prompt goes to stderr, then the trailing newline shouldPeter Eisentraut
also go there.
2001-04-14Work with Readline 4.2.Peter Eisentraut
2001-04-14Add debug_query_string global variable for pgmonitor and debugging use.Bruce Momjian
2001-04-14- Get view OID based on rule OID not base table OIDPhilip Warner
- Fix crash due to null string pointer in some tar files with some libs
2001-04-14Another try at making numeric MODULO operator produce the right answer.Tom Lane
Although it was now using the right equation, it was making bogus choices of the precision to compute intermediate results to. I'm not sure this is really right even yet, but it's better than before ...
2001-04-13Suppress compiler warnings in Vax and NS32K assembly code: 'register foo'Tom Lane
is not a complete declaration.
2001-04-12I just noticed the beta comment. That's not actually true any moreD'Arcy J.M. Cain
so I removed it.
2001-04-06Sorry my previous change was a mistake.Hiroshi Inoue
2001-04-061) Fit the precision of floating point to that of server sideHiroshi Inoue
(fix by Hiroki kataoka). 2) Ensure the definition of atof()(#include stdlib.h). (suggestion by Masaaki Sakaida).
2001-04-06Alter the previous test for "time with time zone" implicit time zoneThomas G. Lockhart
(which failed miserably during DST) to just compare against a time derived from a timestamp value. Certainly not a direct check for a correct result, but should work at any time of year.
2001-04-06Since plpgsql keeps its compiled function parsetrees until backend exit,Tom Lane
it needs to ensure that data structures attached to fmgr info records in the trees will stick around that long, too. Current code was crashing on cases like datatypes with old-style I/O functions.
2001-04-05Fix comment that Vadim found confusing.Tom Lane
2001-04-05StartupXLOG(): initialize XLogCtl->Insert to new page if there isVadim B. Mikheev
no room for a record on last log page.
2001-04-05Hopefully fixed the long long problem.Michael Meskes
2001-04-05pg_dump needs to use ONLY when selecting data from user tables, in caseTom Lane
they have children. As it stood, -d dump mode was badly broken.
2001-04-04Clean up AIX makefile to recognize subversions of AIX 4.1 correctly.Tom Lane
This patch is Peter E's, but I'm applying it on his behalf so it'll get into 7.1RC3 tonight (I'm guessing Peter went to bed already).
2001-04-04Fix/cleanup DLLLIBS handling for Cygwin port. If it works it's toTom Lane
Jason Tishler's credit, if it's broken it's my fault ...
2001-04-04Remove daylight-savings-time-dependent tests of 'time with time zone'Tom Lane
datatype. Perhaps someday we can figure out a way of getting reproducible results from testing this type, but for now ...
2001-04-04Have to lock buffer while changing page' LSN.Vadim B. Mikheev
Thanks to Tom.
2001-04-04Don't dump CHECK constraints with same source and names bothPhilip Warner
starting with '$'.
2001-04-03Log sequence creation (to initialize magic number on recovery).Vadim B. Mikheev
2001-04-03Correct bogus mktime() calls.Tom Lane
2001-04-03- Handle overridden attrs as per discussions 2-Apr-2001Philip Warner
- Dump CHECK constraints in OID order
2001-04-03Check for failure of malloc() and realloc() when allocating space forTom Lane
VFD entries. On platforms where dereferencing a null pointer doesn't lead to coredump, it's possible that this omission could have led to unpleasant behavior like deleting the wrong file.
2001-04-03open(2) flags saved for re-opening a virtual file should probably notTom Lane
include O_CREAT.
2001-04-02Restore pre-7.1 behavior of allowing DROP of a table whose underlyingTom Lane
physical file has disappeared. There is no really good reason why relcache should be opening the underlying file at all, AFAICS. In any case we needn't raise a hard error here.
2001-04-02_mdfd_getrelnfd() should include kernel error code in failure message.Tom Lane
2001-04-02Complain if the same column name is inherited from multiple parentsTom Lane
with different default values, unless the child table redeclares the column with an explicit default. This was judged to be the approach least likely to cause unpleasant surprises.
2001-04-02Disable creation of indexes on system tables.Bruce Momjian
2001-04-02Synced pgc.l with scan.l.Michael Meskes
2001-04-02Remove duplicate definition of DLLLIBS, per gripe from Fred Yankowski.Tom Lane
2001-04-02Tom Ivar Helbekkmo <tih@kpnQwest.no> says that dynamic linking worksTom Lane
now on VAX NetBSD. Hence, remove #ifdef'd disable tests.
2001-04-01Planner wasn't correctly handling adjustment of tuple_fraction for theTom Lane
case of LIMIT in a sub-select.
2001-04-01Patch to put rudimentary dependency support into pg_dump. This addressesPhilip Warner
the UDT/function order problem. - Rudimentary support for dependencies in archives. Uses dependencies to modify the OID used in sorting TOC entries. This will NOT handle multi-level dependencies, but will manage simple relationships like UDTs & their functions. - Treat OIDs with more respect (avoid using ints, use macros for conversion & comparison).
2001-03-31On Cygwin, do initial connect() call in blocking mode, per report fromTom Lane
Jason Tishler.