summaryrefslogtreecommitdiff
path: root/src/include
AgeCommit message (Collapse)Author
2002-01-01Do not accept interrupts in RESUME_INTERRUPTS() and END_CRIT_SECTION()Tom Lane
macros, but only at explicit CHECK_FOR_INTERRUPTS() calls. Not clear whether overenthusiastic acceptance of interrupts accounts for any real bugs, but it definitely seems risky and unnecessary.
2002-01-01Rename TIME token to ISOTIME to eliminate conflict with gram.y parserThomas G. Lockhart
token. Seems to be isolated to datetime.c and datetime.h.
2001-12-29Rework the date/time parsing to tighten up some cases and to enable otherThomas G. Lockhart
cases which should have worked but did not. Now supports julian day (J2452271), ISO time labels (T040506) and various combinations of spaces and run-togethers of dates, times, and time zones. All regression tests pass, and I have more tests to add after the 7.2 release (don't want to require changes to the ancillary horology result files until after then).
2001-12-11Make sure that inlined S_UNLOCK is marked as an update of a 'volatile'Tom Lane
object. This should prevent the compiler from reordering loads and stores into or out of a critical section.
2001-12-10Suppress subquery pullup and pushdown when the subquery has anyTom Lane
set-returning functions in its target list. This ensures that we won't rewrite the query in a way that places set-returning functions into quals (WHERE clauses). Cf. bug reports from Joe Conway.
2001-12-04Replace pq_getbytes(&ch, 1) calls with pq_getbyte(), which is easierTom Lane
to use and significantly faster. This tweak saves 25% (!) of the runtime of COPY IN in a test with 8000-character lines. I wouldn't normally commit a performance improvement this late in the cycle, but 25% got my attention...
2001-12-03Add configure-time check whether sig_atomic_t is defined; if not,Tom Lane
provide a default definition equating it to 'int'. Should trigger only on machines with pre-ANSI-C header files, eg SunOS 4.1.x.
2001-12-02More correct way to check for existence of types, which allows to specifyPeter Eisentraut
which include files to consider. Should fix BeOS problems with int8 types.
2001-11-22Remove compile errors of psql.exe and libpq.dll underHiroshi Inoue
Multibyte mode.
2001-11-21Spell 'precedes', 'preceding' correctly in various places.Tom Lane
2001-11-16IsSystemRelationName() treats TOAST relations as system relations.Tom Lane
This seems the right thing for most usages, but I notice two places where it is the wrong thing. One is that the default permissions on TOAST rels should be no-access, not world-readable; the other is that PrepareForTupleInvalidation doesn't really need to spend time looking at tuples of TOAST relations.
2001-11-16Remove 'triggered data change violation' error check, per recentTom Lane
discussions in pghackers.
2001-11-15Well the absolute correct solution would involve all of:Bruce Momjian
int8, int16, int32, int64 and separately uint8, uint16, uint32, uint64 The previous patch grouped: int8, int16 and int32 uint8, uint16 and uint32 int64 and uint64 <-- this grouping is wrong on AIX 4.3.3 and below If you prefer to make 4 groups out of this you could apply this patch. Andreas
2001-11-15Fix for AIX compile and unsigned/signed typedefs.Bruce Momjian
Peter E, Tatsuo, Andreas
2001-11-12Remove duplicate extern declaration.Tom Lane
2001-11-12Remove a bunch more no-longer-used stuff in libpq-be.h.Tom Lane
2001-11-12The PacketReceive/PacketSend routines aren't used anymore.Tom Lane
2001-11-12Add comments of duplicate definitions in interfaces/odbc/md5.h.Bruce Momjian
2001-11-12Make ALTER TABLE RENAME update foreign-key trigger arguments correctly.Tom Lane
Brent Verner, with review and kibitzing from Tom Lane.
2001-11-10Clean up usage-statistics display code (ShowUsage and friends). StatFpTom Lane
is gone, usage messages now go through elog(DEBUG).
2001-11-08Fix indenting for 'extern "C"' cases.Bruce Momjian
2001-11-06Use PostgreSQL's standard declaration for a 32-bit integer to defineThomas G. Lockhart
the cash data type.
2001-11-06The extra semaphore that proc.c now allocates for checkpoint processesTom Lane
should be accounted for in the PROC_SEM_MAP_ENTRIES() macro. Otherwise the ports that rely on this macro to size data structures are broken. Mea culpa.
2001-11-05Fix coredump in plpgsql when trying to return a rowtype result.Tom Lane
Need to return a TupleTableSlot, not just a bare tuple.
2001-11-05New pgindent run with fixes suggested by Tom. Patch manually reviewed,Bruce Momjian
initdb/regression tests pass.
2001-11-05CREATE TABLE foo (x,y,z) AS SELECT ... can't apply target column namesTom Lane
to the target list in gram.y; it must wait till after expansion of the target list in analyze.c. Per bug report 4-Nov: lx=# CREATE TABLE abc (a char, b char, c char); CREATE lx=# CREATE TABLE xyz (x, y, z) AS SELECT * FROM abc; ERROR: CREATE TABLE/AS SELECT has mismatched column count
2001-11-04Merge three existing ways of signaling postmaster from child processes,Tom Lane
so that only one signal number is used not three. Flags in shared memory tell the reason(s) for the current signal. This method is extensible to handle more signal reasons without chewing up even more signal numbers, but the immediate reason is to keep pg_pwd reloads separate from SIGHUP processing in the postmaster. Also clean up some problems in the postmaster with delayed response to checkpoint status changes --- basically, it wouldn't schedule a checkpoint if it wasn't getting connection requests on a regular basis.
2001-11-02Fix pg_pwd caching mechanism, which was broken by changes to forkTom Lane
postmaster children before client auth step. Postmaster now rereads pg_pwd on receipt of SIGHUP, the same way that pg_hba.conf is handled. No cycles need be expended to validate password cache validity during connection startup.
2001-11-02Fix problem reported by Alex Korn: if a relation has been dropped andTom Lane
recreated since the start of our transaction, our first reference to it errored out because we'd try to reuse our old relcache entry for it. Do this by accepting SI inval messages just before relcache search in heap_openr, so that dead relcache entries will be flushed before we search. Also, break heap_open/openr into two pairs of routines, relation_open(r) and heap_open(r). The relation_open routines make no tests on relkind and so can be used to open anything that has a pg_class entry. The heap_open routines are wrappers that add a relkind test to preserve their established behavior. Use the relation_open routines in several places that had various kluge solutions for opening rels that might be either heap or index rels. Also, remove the old 'heap stats' code that's been superseded by Jan's stats collector, and clean up some inconsistencies in error reporting between the different types of ALTER TABLE.
2001-10-30Fix problems with subselects used in GROUP BY expressions, per gripeTom Lane
from Philip Warner. Side effect of change is that GROUP BY expressions will not be re-evaluated at multiple plan levels anymore, whereas this sometimes happened with old code.
2001-10-28Another pgindent run. Fixes enum indenting, and improves #endifBruce Momjian
spacing. Also adds space for one-line comments.
2001-10-25Add int2-to-int8 and int8-to-int2 conversion routines. Needed to avoidTom Lane
breaking existing pg_dump scripts, which try to assign the result of count(*) to an int2 variable. catversion bumped.
2001-10-25pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian
tests pass.
2001-10-24Include locale.h before undefining gettext() to avoid compilation errorsPeter Eisentraut
on Solaris. per report from Lee Kindness, 2001-10-23
2001-10-23Document range restriction on bit values used in INTERVAL typmod.Tom Lane
2001-10-23Fix foreign keys on system columns.Tom Lane
2001-10-22Consolidate tables of known system attributes into one table.Tom Lane
2001-10-21Fix getopt-vs-init_ps_display problem by copying original argv[] info,Tom Lane
per suggestion from Peter. Simplify several APIs by transmitting the original argv location directly from main.c to ps_status.c, instead of passing it down through several levels of subroutines.
2001-10-20Revert change to autodetect '__getopt_initialized' variable ... turnsTom Lane
out glibc doesn't actually export this variable, so we need a different solution.
2001-10-19Proper fix for glibc getopt() botch. Surprising we did not see thisTom Lane
before.
2001-10-19Rename macro arg to avoid useless compiler warning when building plperl.Tom Lane
2001-10-18Add STATUS_EOF value needed for auth.c. Remove a bunch of unusedTom Lane
STATUS_xxx macros to reduce clutter.
2001-10-18Accept an INTERVAL argument for SET TIME ZONE per SQL99.Thomas G. Lockhart
Modified the parser and the SET handlers to use full Node structures rather than simply a character string argument. Implement INTERVAL() YEAR TO MONTH (etc) syntax per SQL99. Does not yet accept the goofy string format that goes along with, but this should be fairly straight forward to fix now as a bug or later as a feature. Implement precision for the INTERVAL() type. Use the typmod mechanism for both of INTERVAL features. Fix the INTERVAL syntax in the parser: opt_interval was in the wrong place. INTERVAL is now a reserved word, otherwise we get reduce/reduce errors. Implement an explicit date_part() function for TIMETZ. Should fix coersion problem with INTERVAL reported by Peter E. Fix up some error messages for date/time types. Use all caps for type names within message. Fix recently introduced side-effect bug disabling 'epoch' as a recognized field for date_part() etc. Reported by Peter E. (??) Bump catalog version number. Rename "microseconds" current transaction time field from ...Msec to ...Usec. Duh! date/time regression tests updated for reference platform, but a few changes will be necessary for others.
2001-10-18Extend code that deduces implied equality clauses to detect whether aTom Lane
clause being added to a particular restriction-clause list is redundant with those already in the list. This avoids useless work at runtime, and (perhaps more importantly) keeps the selectivity estimation routines from generating too-small estimates of numbers of output rows. Also some minor improvements in OPTIMIZER_DEBUG displays.
2001-10-16Ok, here is the modified encoding table (column1 is the standard name,Tatsuo Ishii
2 is our "official" name, and 3 is alias). If there's no objection, I will change them. ASCII SQL_ASCII UTF-8 UNICODE UTF_8 MULE-INTERNAL MULE_INTERNAL ISO-8859-1 LATIN1 ISO_8859_1 ISO-8859-2 LATIN2 ISO_8859_2 ISO-8859-3 LATIN3 ISO_8859_3 ISO-8859-4 LATIN4 ISO_8859_4 ISO-8859-5 ISO_8859_5 ISO-8859-6 ISO_8859_6 ISO-8859-7 ISO_8859_7 ISO-8859-8 ISO_8859_8 ISO-8859-9 LATIN5 ISO_8859_9 ISO-8859-10 LATIN6 ISO_8859_10 ISO-8859-13 LATIN7 ISO_8859_13 ISO-8859-14 LATIN8 ISO_8859_14 ISO-8859-15 LATIN9 ISO_8859_15 ISO-8859-16 LATIN10 ISO_8859_16
2001-10-13Make selectivity routines cope gracefully with NaNs, infinities, andTom Lane
NUMERIC values that are out of the range of 'double'. Per trouble report from Mike Quinn.
2001-10-13Add missing prototype to suppress gcc warning.Tom Lane
2001-10-13Attached patch for unconditional enabling of pltcl-unknown support.Bruce Momjian
Enabling this feature adds very light overhead of 1 select from pg_class on first using of pl/tcl in backend if unknown suppport is really unused. But pl/tcl with this support has very improved functionality. Patch includes changes to documentation.
2001-10-12Add a new function "pg_client_encoding" which returns the current clientTatsuo Ishii
side encoding name. This is necessary for client API's such as JDBC to perform correct encoding conversions. See my email "[HACKERS] pg_client_encoding" 10 Sep 2001.
2001-10-12Break transformCreateStmt() into multiple routines and makeTom Lane
transformAlterStmt() use these routines, instead of having lots of duplicate (not to mention should-have-been-duplicate) code. Adding a column with a CHECK constraint actually works now, and the tests to reject unsupported DEFAULT and NOT NULL clauses actually fire now. ALTER TABLE ADD PRIMARY KEY works, modulo having to have created the column(s) NOT NULL already.