aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* NOFILE isn't used anywhere any more.Tom Lane2004-02-23
|
* Do a direct probe during postmaster startup to determine the maximumTom Lane2004-02-23
| | | | | | number of openable files and the number already opened. This eliminates depending on sysconf(_SC_OPEN_MAX), and allows much saner behavior on platforms where open-file slots are used up by semaphores.
* Fixed incorrect output of indicator structs using the name of the data struct.Michael Meskes2004-02-23
|
* Write #include <dl.h>, not #include "dl.h", to correctly reflect theTom Lane2004-02-23
| | | | fact that dl.h is a system header and not one of ours.
* Move responsibility for copying argv[] array into ps_status.c, where itTom Lane2004-02-22
| | | | | | | logically belongs. Arrange to update the _NSGetArgv() copy of the argv pointer on Darwin. (It seems likely that other NeXT-derived platforms also have an _NSGetArgv() problem, but until we have some reports I'll just make this #ifdef __darwin__.)
* Fix random build breakage from log_disconnections patch.Tom Lane2004-02-21
|
* Implement a solution to the 'Turkish locale downcases I incorrectly'Tom Lane2004-02-21
| | | | | | problem, per previous discussion. Make some additional changes to centralize the knowledge of just how identifier downcasing is done, in hopes of simplifying any future tweaking in this area.
* Re-implement psql's input scanning to use a flex-generated lexer, as perTom Lane2004-02-19
| | | | | | | | | recent discussion. The lexer is used for both SQL command text and backslash commands. The purpose of this change is to make it easier to track the behavior of the backend's SQL lexer --- essentially identical flex rules are now used by psql. Also, this cleans up a lot of very squirrelly code in mainloop.c and command.c. The flex code is somewhat bulkier than the removed code, but should be lots easier to maintain.
* Cosmetic changes (mostly whitespace) to make it easier to diff theTom Lane2004-02-19
| | | | backend lexer against psql's.
* Here is a patch that implements setitimer() on win32. With this patchBruce Momjian2004-02-18
| | | | | | | | | | | applied, deadlock detection and statement_timeout now works. The file timer.c goes into src/backend/port/win32/. The patch also removes two lines of "printf debugging" accidentally left in pqsignal.h, in the console control handler. Magnus Hagander
* Added missing rule for DOUBLE variables.Michael Meskes2004-02-18
|
* Improve the consistency of the error message emitted when rejectingNeil Conway2004-02-18
| | | | | invalid input to the oid type. Also, remove some long-unused code from adt/numutils.c
* Rename function log_session_end to log_disconnections.Bruce Momjian2004-02-17
|
* Fix prototype for on_proc_exit in log_disconnections patch.Bruce Momjian2004-02-17
|
* This patch brings up to date what I did last year (now unfortunatelyBruce Momjian2004-02-17
| | | | | | | bitrotted) to allow the logging of the end of a session, enabled by the config setting "log_disconnections". Andrew Dunstan
* Here is an updated version of the win32 readdir patch.Bruce Momjian2004-02-17
| | | | | | | | | | | | | | 1) Now puts in exactly the same change as the current-cvs mingw code does. (see http://cvs.sourceforge.net/viewcvs.py/mingw/runtime/mingwex/dirent.c?r1= 1.3&r2=1.4, second part of the patch). 2) Updates both xlog.c and slru.c in backend/access/transam/ 3) Also updates pg_resetxlog, which also uses readdir() and checks the errno value after the loop. Magnus Hagander
* Under Win32, stat() returns an st_ino field, but it has no meaning (onBruce Momjian2004-02-17
| | | | | | | | Win2K, and possibly all Win32 variants, it is always 0). This causes a number of problems in the dfmgr.c logic, which basically all revolve around the fact that *any* two files will appear to have the same inode. Claudio Natoli
* Make use of statistics on index expressions. There are still someTom Lane2004-02-17
| | | | | | | corner cases that could stand improvement, but it does all the basic stuff. A byproduct is that the selectivity routines are no longer constrained to working on simple Vars; we might in future be able to improve the behavior for subexpressions that don't match indexes.
* Change may -> might, and remove an extra tab.Bruce Momjian2004-02-16
|
* - Cleaned up parser a little bit. It does not make sense to allow aMichael Meskes2004-02-16
| | | | | typename to be typedef'ed that cannot be parsed as variable type. - Allowed some SQL keywords to be used as C variable names.
* First steps towards statistics on expressional (nee functional) indexes.Tom Lane2004-02-15
| | | | | | | | This commit teaches ANALYZE to store such stats in pg_statistic, but nothing is done yet about teaching the planner to use 'em. Also, repair longstanding oversight in separate ANALYZE command: it updated the pg_class.relpages and reltuples counts for the table proper, but not for indexes.
* New translationPeter Eisentraut2004-02-15
|
* - Allowed some C keywords to be used as SQL column names.Michael Meskes2004-02-15
|
* - Added missing braces to array parsing.Michael Meskes2004-02-15
| | | | | - Set ecpg version to 3.1.1. - Removed that old debugging output that I forgot the last time.
* Create crosstype comparison operators for date vs. timestamp and dateTom Lane2004-02-14
| | | | | | | vs. timestamptz. This allows use of indexes for expressions like datecol >= date 'today' - interval '1 month' which were formerly not indexable without casting the righthand side down from timestamp to date.
* Repair optimization bug I introduced in a moment of brain fade back inTom Lane2004-02-13
| | | | | | Nov 2002: when constant-expression simplification removes all the aggregate function calls from a query, that doesn't mean we can act as though there never were any aggregates. Per bug report from Gabor Szucs.
* After further thought about support for gathering stats on functionalTom Lane2004-02-13
| | | | | | indexes, it seems like we ought to put another layer of indirection between the compute_stats functions and the actual data storage. This would allow us to compute the values on-the-fly, for example.
* Try to make 'cross-database references are not implemented' errors aTom Lane2004-02-13
| | | | | bit more helpful by identifying the specific qualified name being complained of.
* Add hooks for type-specific calculation of ANALYZE statistics. Idea andTom Lane2004-02-12
| | | | | coding by Mark Cave-Ayland, some kibitzing by Tom Lane. initdb forced due to new column in pg_type.
* Add CVS ID tags to port/win32/files.Bruce Momjian2004-02-12
|
* Avoid delaying postmaster shutdown by up to 10 seconds on platformsTom Lane2004-02-12
| | | | where signals do not terminate sleep() delays.
* Improve \? wording, remove 'internal'.Bruce Momjian2004-02-12
|
* Translation updatesPeter Eisentraut2004-02-12
|
* Fixed bug where FlushRelationBuffers() did call StrategyInvalidateBuffer()Jan Wieck2004-02-12
| | | | | | | | | | | for already empty buffers because their buffer tag was not cleard out when the buffers have been invalidated before. Also removed the misnamed BM_FREE bufhdr flag and replaced the checks, which effectively ask if the buffer is unpinned, with checks against the refcount field. Jan
* Check only live tuples for OID validity, to avoid issues after ALTERTom Lane2004-02-12
| | | | TABLE. Per recent discussion.
* Added hints about the reason, why the command string inJan Wieck2004-02-12
| | | | | | the view pg_stat_activity is missing, as per Bruces suggestion. Jan
* Commit the reasonably uncontroversial parts of J.R. Nield's PITR patch, toTom Lane2004-02-11
| | | | | | | | | | | wit: Add a header record to each WAL segment file so that it can be reliably identified. Avoid splitting WAL records across segment files (this is not strictly necessary, but makes it simpler to incorporate the header records). Make WAL entries for file creation, deletion, and truncation (as foreseen but never implemented by Vadim). Also, add support for making XLOG_SEG_SIZE configurable at compile time, similarly to BLCKSZ. Fix a couple bugs I introduced in WAL replay during recent smgr API changes. initdb is forced due to changes in pg_control contents.
* Repair some problems in bgwriter start/stop logic. In particular, don'tTom Lane2004-02-11
| | | | | | | allow the bgwriter to start before the startup subprocess has finished ... it tends to crash otherwise. (The same problem may have existed for the checkpointer, I'm not entirely sure.) Remove some code that was redundant because the bgwriter is handled as a member of the backend list.
* Check and set thread-safe functions separately, rather than as a singleBruce Momjian2004-02-11
| | | | | | | | | | variable. Remove thread locking for non-thread-safe functions, instead throw a compile error. Platforms will have to re-run tools/thread to record their thread safety.
* Properly set NEED_REENTRANT_FUNCS for threaded libpq/ecpg.Bruce Momjian2004-02-11
| | | | Without this patch, no thread locking or *_r functions were being used.
* No need to link libpq into these programs ...Tom Lane2004-02-10
|
* Add configure support for determining UINT64_FORMAT, the appropriateTom Lane2004-02-10
| | | | snprintf format for uint64 items.
* More clearly describe why PQinSend returns false for non-threaded libpq.Bruce Momjian2004-02-10
|
* Repair missing inclusions of -lintl for shared libraries.Tom Lane2004-02-10
|
* Looks like we need <unistd.h> for select() on Darwin.Tom Lane2004-02-10
|
* Centralize implementation of delay code by creating a pg_usleep()Tom Lane2004-02-10
| | | | | | | | | subroutine in src/port/pgsleep.c. Remove platform dependencies from miscadmin.h and put them in port.h where they belong. Extend recent vacuum cost-based-delay patch to apply to VACUUM FULL, ANALYZE, and non-btree index vacuuming. By the way, where is the documentation for the cost-based-delay patch?
* Restructure smgr API as per recent proposal. smgr no longer depends onTom Lane2004-02-10
| | | | | | | | | the relcache, and so the notion of 'blind write' is gone. This should improve efficiency in bgwriter and background checkpoint processes. Internal restructuring in md.c to remove the not-very-useful array of MdfdVec objects --- might as well just use pointers. Also remove the long-dead 'persistent main memory' storage manager (mm.c), since it seems quite unlikely to ever get resurrected.
* Win32 signals cleanup. Patch by Magnus Hagander, with input from ClaudioNeil Conway2004-02-08
| | | | | | | | | | | | | | | | | | | | | | Natoli and Bruce Momjian (and some cosmetic fixes from Neil Conway). Changes: - remove duplicate signal definitions from pqsignal.h - replace pqkill() with kill() and redefine kill() in Win32 - use ereport() in place of fprintf() in some error handling in pqsignal.c - export pg_queue_signal() and make use of it where necessary - add a console control handler for Ctrl-C and similar handling on Win32 - do WaitForSingleObjectEx() in CHECK_FOR_INTERRUPTS() on Win32; query cancelling should now work on Win32 - various other fixes and cleanups
* Add missing dependency, per Wade Klaver.Tom Lane2004-02-07
|
* Cost based vacuum delay feature.Jan Wieck2004-02-06
| | | | Jan