summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2004-01-09Remove ereport() from failed connection; already done, per Tom.Bruce Momjian
2004-01-09Fix for cancel key restarting postmaster, from ClaudioBruce Momjian
2004-01-09Have psql help show \w parameter as requied.Bruce Momjian
2004-01-09Allow psql to handle tilde user expansion for file names.Bruce Momjian
Zach Irmen
2004-01-09Change PG_DELAY from msec to usec and use it consistenly rather thanBruce Momjian
select(). Add Win32 Sleep() for delay.
2004-01-09Translation updatesDennis Bjorklund
2004-01-09Add WIN32 pipe implementation that uses sockets.Bruce Momjian
Claudio Natoli
2004-01-09Remove duplicate include of value.h. I think it got in because Tom and I ↵Bruce Momjian
both added it.
2004-01-09Add comment about synchronous signals.Bruce Momjian
2004-01-09Allow libpq to do thread-safe SIGPIPE handling. This allows it toBruce Momjian
ignore SIGPIPE from send() in libpq, but terminate on any other SIGPIPE, unless the user installs their own signal handler. This is a minor fix because the only time you get SIGPIPE from libpq's send() is when the backend dies.
2004-01-09Fix incorrect SQL syntax emitted when -E is given without -P.Tom Lane
Report and fix from Martin Pitt.
2004-01-08Fix a spelling mistake in a comment.Neil Conway
2004-01-08Throw compile error if our non-thread-safe snprintf is used.Bruce Momjian
2004-01-08Update OSF thread flags for non-gcc compiles.Bruce Momjian
2004-01-08Translation updatesDennis Bjorklund
2004-01-08Translation updatesDennis Bjorklund
2004-01-08[Forced commit to add log message that I fat-fingered last time]Tom Lane
Give a more reasonable error message when lock file exists but has zero length; prior code confused this with could-not-read-file case.
2004-01-08Fix Solaris thread build settings for non-gcc compilers.Bruce Momjian
2004-01-07makeTom Lane
2004-01-07Make some improvements in the intelligence of the partial-indexTom Lane
predicate tester. It can now deal with commuted clauses (for instance, 4 < x implies x > 3), subclauses more complicated than a simple Var (for example, upper(x) = 't' implies upper(x) > 'a'), and <> operators (for example, x < 3 implies x <> 4). Still only understands operators associated with btree opclasses, though. Inspired by example from Martin Hampl.
2004-01-07Translation updatesDennis Bjorklund
2004-01-07Add missing inclusion of nodes/value.h.Tom Lane
2004-01-07More janitorial work: remove the explicit casting of NULL literals to aNeil Conway
pointer type when it is not necessary to do so. For future reference, casting NULL to a pointer type is only necessary when (a) invoking a function AND either (b) the function has no prototype OR (c) the function is a varargs function.
2004-01-07Cleanup: move the 'Value' node into a separate file, rather than puttingNeil Conway
it in the same file as the 'List' node.
2004-01-07Support function parameter names in plpgsql. This is the last ofTom Lane
Dennis Bjorklund's original patch for function parameter names, but there's still plenty left to do (documentation for instance...)
2004-01-07pg_dump support for function parameter names.Tom Lane
2004-01-06Apply the core parts of Dennis Bjorklund's patch to allow functionTom Lane
parameters to be declared with names. pg_proc has a column to store names, and CREATE FUNCTION can insert data into it, but that's all as yet. I need to do more work on the pg_dump and plpgsql portions of the patch before committing those, but I thought I'd get the bulky changes in before the tree drifts under me. initdb forced due to pg_proc change.
2004-01-06Final rearrangement of main postgresql child process (ie.Bruce Momjian
BackendFork/SSDataBase/pgstat) startup, to allow fork/exec calls to closely mimic (the soon to be provided) Win32 CreateProcess equivalent calls. Claudio Natoli
2004-01-06Suppress compiler warning (xlog_outrec is unused if not WAL_DEBUG).Tom Lane
2004-01-06Code cleanup, mostly in the smgr:Neil Conway
- Update comment in IsReservedName() to the present day - Improve some variable & function names in commands/vacuum.c. I was planning to rewrite this to avoid lappend(), but since I still intend to do the list rewrite, there's no need for that. - Update some smgr comments which seemed to imply that we still forced all dirty pages to disk at commit-time. - Replace some #ifdef DIAGNOSTIC code with assertions. - Make the distinction between OS-level file descriptors and virtual file descriptors a little clearer in a few comments - Other minor comment improvements in the smgr code
2004-01-06Remove unused 'noversion' command-line option processing from theNeil Conway
backend.
2004-01-06Make the 'wal_debug' GUC variable a boolean (rather than an integer), andNeil Conway
hide it behind #ifdef WAL_DEBUG blocks.
2004-01-06Instead of rechecking lossy index operators by putting them into theTom Lane
regular qpqual ('filter condition'), add special-purpose code to nodeIndexscan.c to recheck them. This ends being almost no net addition of code, because the removal of planner code balances out the extra executor code, but it is significantly more efficient when a lossy operator is involved in an OR indexscan. The old implementation had to recheck the entire indexqual in such cases.
2004-01-05Adjust indexscan planning logic to keep RestrictInfo nodes associatedTom Lane
with index qual clauses in the Path representation. This saves a little work during createplan and (probably more importantly) allows reuse of cached selectivity estimates during indexscan planning. Also fix latent bug: wrong plan would have been generated for a 'special operator' used in a nestloop-inner-indexscan join qual, because the special operator would not have gotten into the list of quals to recheck. This bug is only latent because at present the special-operator code could never trigger on a join qual, but sooner or later someone will want to do it.
2004-01-05Trivial refactoring: move analysis of ViewStmt into its own function forNeil Conway
readability and for the sake of consistency with the rest of analyze.c
2004-01-05Fix three trivial typos in comments.Neil Conway
2004-01-05Translation updatesPeter Eisentraut
2004-01-05Improve UniquePath logic to detect the case where the input is alreadyTom Lane
known unique (eg, it is a SELECT DISTINCT ... subquery), and not do a redundant unique-ification step.
2004-01-05Dept. of second thoughts: clause_selectivity shouldn't try to cache itsTom Lane
result for jointypes associated with IN processing.
2004-01-05Add the ability to extract OR indexscan conditions from OR-of-ANDTom Lane
join conditions in which each OR subclause includes a constraint on the same relation. This implements the other useful side-effect of conversion to CNF format, without its unpleasant side-effects. As per pghackers discussion of a few weeks ago.
2004-01-04Fixed bug in GRANT OPTION FOR parsing.Michael Meskes
2004-01-04There's no longer any good reason for genbki.sh and Gen_fmgrtab.sh toTom Lane
run the data through cpp, and we know of at least one platform where unusual cpp behavior breaks the process. So remove the cpp step, and make consequent simplifications.
2004-01-04Fix portability bugs: char values passed to <ctype.h> functions mustTom Lane
be cast to unsigned char. We have learned this the hard way before.
2004-01-04Fix discrepancy in prototypes for HPUX pg_dlerror.Tom Lane
2004-01-04Fix ReadOffset() to work correctly when off_t is wider than int.Tom Lane
2004-01-04Merge restrictlist_selectivity into clauselist_selectivity byTom Lane
teaching the latter to accept either RestrictInfo nodes or bare clause expressions; and cache the selectivity result in the RestrictInfo node when possible. This extends the caching behavior of approx_selectivity to many more contexts, and should reduce duplicate selectivity calculations.
2004-01-04Remove trailing newline from file.Bruce Momjian
2004-01-04Remove trailing semicolons from macro initializations in plpython.Bruce Momjian
Problem report on True64 Unix by Nikola Milutinovic.
2004-01-04Mention grabbing typedefs from pgsql/lib too.Bruce Momjian
2004-01-04Rewrite OR indexscan processing to be more flexible. We can now for theTom Lane
first time generate an OR indexscan for a two-column index when the WHERE condition is like 'col1 = foo AND (col2 = bar OR col2 = baz)' --- before, the OR had to be on the first column of the index or we'd not notice the possibility of using it. Some progress towards extracting OR indexscans from subclauses of an OR that references multiple relations, too, although this code is #ifdef'd out because it needs more work.