summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2002-11-06First phase of implementing hash-based grouping/aggregation. An AGG planTom Lane
node now does its own grouping of the input rows, and has no need for a preceding GROUP node in the plan pipeline. This allows elimination of the misnamed tuplePerGroup option for GROUP, and actually saves more code in nodeGroup.c than it costs in nodeAgg.c, as well as being presumably faster. Restructure the API of query_planner so that we do not commit to using a sorted or unsorted plan in query_planner; instead grouping_planner makes the decision. (Right now it isn't any smarter than query_planner was, but that will change as soon as it has the option to select a hash- based aggregation step.) Despite all the hackery, no initdb needed since only in-memory node types changed.
2002-11-04Fix inclusion order, per Andreas.Tom Lane
2002-11-04Remove unnecessary inclusion, per Andreas.Tom Lane
2002-11-04Remove no-longer-needed inclusion of bootstrap_tokens.h, per patchTom Lane
from Andreas.
2002-11-04Applied two patches from Kris Jurka.Barry Lind
- First fixes a problem with a recent patch allowing setNull on updateable resultsets - Second removed toLower() calls on database object names. Leave it to the caller to correctly pass lower, upper or mixed case. The driver already has methods that the caller can use to determine that postgres stores identifiers in lowercase. (unless the identifier was quoted when created). Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
2002-11-02Code review for recent patch to allow ALTER TABLE ADD COLUMN whenTom Lane
a child table already has a matching column. Acquire appropriate lock on child table; do the right thing with any CHECK constraints attached to the new parent column.
2002-11-02During swap_relfilenodes, swap relation size statistic fields along withTom Lane
the relfilenode and toast fields. This ensures that the newly-computed statistics will be available on completion of CLUSTER.
2002-11-02Remove encoding lookups from grammar stage, push them back to placesTom Lane
where it's safe to do database access. Along the way, fix core dump for 'DEFAULT' parameters to CREATE DATABASE. initdb forced due to change in pg_proc entry.
2002-11-02Clean up a few fprintf(stderr)'s that should be elog's.Tom Lane
2002-11-02Fix permissions-checking bugs and namespace-search-path bugs inTom Lane
CONVERSION code. Still need to figure out what to do about inappropriate coding in parsing.
2002-11-02Re-add Win32 missing files, I think.Bruce Momjian
2002-11-02Re-add Win32 files.Bruce Momjian
2002-11-01Arrange to compile flex output files as inclusions into other filesTom Lane
(usually bison output files), not as standalone files. This hack works around flex's insistence on including <stdio.h> before we are able to include postgres.h; postgres.h will already be read before the compiler starts to read the flex output file. Needed for largefile support on some platforms.
2002-11-01Reduce a couple of debugging messages from LOG to DEBUG1 category.Tom Lane
2002-11-01Reduce messages associated with shell-type function arguments/resultsTom Lane
from WARNING to NOTICE, since they are expected messages in common cases.
2002-11-01Update to match expected results on OS X 10.2.Tom Lane
2002-11-01After elog(PANIC), exit with abort() not proc_exit(). This allows aTom Lane
core file to be produced for debugging, and avoids trying to run the normal proc-exit cleanup hooks, which are likely to cause additional problems if the system is hosed.
2002-11-01Correct ordering of geometry/freebsd entries, add one for freebsd5.Tom Lane
2002-11-01Update for test changes.Tom Lane
2002-11-01Avoid malloc(0) when printing a table of no columns. On some platformsTom Lane
this returns NULL, which confuses the code.
2002-11-01Fix some bogus comments.Tom Lane
2002-10-31Add missing #include <errno.h>, per gripe from Alessio Bragadini.Tom Lane
2002-10-31Got tired of explaining why this Assert is not wrong.Tom Lane
2002-10-31Code review for statement_timeout patch. Fix some race conditionsTom Lane
between signal handler and enable/disable code, avoid accumulation of timing error due to trying to maintain remaining-time instead of absolute-end-time, disable timeout before commit not after.
2002-10-31Fix miscalculation of remaining free space during tuple chain moving.Tom Lane
Only affects machines where MAXALIGN > 4, and is a boundary-condition case even there, but still surprising that it's not been identified before. Also reduce tuple chain move give-up messages from WARNING to DEBUG1, since they are not unexpected conditions.
2002-10-31Avoid use of inline functions that are not declared static. Needed toTom Lane
conform to C99's brain-dead notion of how inline functions should work.
2002-10-31Clean up gram.y trailing spaces.Bruce Momjian
2002-10-30Return something meaningful for Statement.getFetchSize(). Previously we wereBarry Lind
returning an exception when this method was called. Modified Files: jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
2002-10-30Add additional ORDER BY to join regression test, per Tatsuo.Bruce Momjian
2002-10-30Remove /src/utils. Is final cleanup of getopt.c resurection.Bruce Momjian
2002-10-29Add popen/pclose -> _popen/_pclose() mapping for Win32.Bruce Momjian
2002-10-29Update comments.Bruce Momjian
2002-10-29getopt.c now in /port, for MS Win.Bruce Momjian
2002-10-29Re-add getopt.c for MSWin psql.Bruce Momjian
2002-10-29Re-add getopt.c.Bruce Momjian
2002-10-29Update regression for FreeBSD 4.7, for Larry RosenmanBruce Momjian
2002-10-28Add ORDER BY to join regression test.Bruce Momjian
2002-10-28fseeko NetBSD fix.Bruce Momjian
2002-10-27Suppress compile warnings on OS X.Tom Lane
2002-10-26Add missing semicolons to a few PG_FUNCTION_INFO_V1 calls.Tom Lane
2002-10-25Add dummy variable declaration to PG_FUNCTION_INFO_V1() to preventTom Lane
'empty declaration' warnings from compilers that care about such things. Per discussion back before 7.2 release; we didn't do it then because we'd already missed all the beta cycle ...
2002-10-25Remove #warning directive, which is nonstandard and isn't reallyTom Lane
buying us anything to make it worth the porting risk. Per discussion quite some time ago.
2002-10-25Change to fseeko(), per Philip.Bruce Momjian
2002-10-25Patch submitted by Kris Jurka to fix arrayindexoutofbounds exception causedBarry Lind
by improper array initialization. Modified Files: jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
2002-10-25Allow fseeko in pg_dump only if fseeko() will work for all supported fileBruce Momjian
sizes.
2002-10-24Code review for connection timeout patch. Avoid unportable assumptionTom Lane
that tv_sec is signed; return a useful error message on timeout failure; honor PGCONNECT_TIMEOUT environment variable in PQsetdbLogin; make code obey documentation statement that timeout=0 means no timeout.
2002-10-24Fix some places that were unportably assuming struct timeval's tv_secTom Lane
field is signed. Clean up casting.
2002-10-24Function-call-style type coercions should be treated as explicitTom Lane
coercions, not implicit ones. For example, 'select abstime(1035497293)' should succeed because there is an explicit binary coercion from int4 to abstime.
2002-10-24Fix include for NetBSD.Bruce Momjian
2002-10-24Add prototype include to fseeko.c.Bruce Momjian