summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Please apply the following patch to fix problems with the AIX portBruce Momjian2000-09-296-11/+81
| | | | | | | | | | | | | | and the fmgr redesign. It makes the homebrewn dl*() functions for more recent Versions of AIX obsolete by using the system dl*() functions instead. It also fixes the expected file for the horology regression test. Please regenerate configure from configure.in, I don't have the environment/time. Andreas
* Subselects in FROM clause, per ISO syntax: FROM (SELECT ...) [AS] alias.Tom Lane2000-09-2977-2623/+3138
| | | | | | | | | (Don't forget that an alias is required.) Views reimplemented as expanding to subselect-in-FROM. Grouping, aggregates, DISTINCT in views actually work now (he says optimistically). No UNION support in subselects/views yet, but I have some ideas about that. Rule-related permissions checking moved out of rewriter and into executor. INITDB REQUIRED!
* New unified regression test driver, test/regress makefile cleanup,Peter Eisentraut2000-09-2917-190/+831
| | | | | add "check" and "installcheck" targets, straighten out make variable naming of host_os, host_cpu, etc.
* Standardize on __CYGWIN__ rather than __CYGWIN32__ macro. Doesn't matterPeter Eisentraut2000-09-295-13/+13
| | | | | either way (although the former is preferred by the Cygwin folks themselves), but using only one seems nicer.
* Enable initdb to create several levels of directories for PGDATA, ifPeter Eisentraut2000-09-291-2/+2
| | | | `mkdir -p' works.
* Linking with -lc or -lm crashes on Cygwin; filter out those libraries fromPeter Eisentraut2000-09-291-0/+4
| | | | the LIBS variable.
* Cygwin uses _sys_nerr for sys_nerrPeter Eisentraut2000-09-292-7/+15
|
* BufferAlloc() doesn't allocate write error buffers.Hiroshi Inoue2000-09-291-2/+12
| | | | Remove compiler waring(my fault).
* avoid database-wide restart on write errorHiroshi Inoue2000-09-291-5/+4
|
* Cygwin doesn't have DST before 1970 eitherPeter Eisentraut2000-09-281-0/+1
|
* Fixes for Cygwin, with help from Pete Forman <gsez020@kryten.bedford.waii.com>.Peter Eisentraut2000-09-2710-49/+42
| | | | | | | Update the installation instructions (formerly misnamed "FAQ"), add configure checks for some headers rather than having users copy stubs manually (ugh!). Use Autoconf check for exe extension. This also avoids inheriting the value of $(X) from the environment.
* Reset current user id to session user id during transaction abortPeter Eisentraut2000-09-271-1/+7
|
* - Synced preproc.y with gram.y.Michael Meskes2000-09-268-156/+155
| | | | | | - Synced keyword.c. - Added patch by Christof Petig <christof.petig@wtal.de> to fix NOT FOUND problem on update/insert/delete.
* Fix compile error in ecpg when enable-multibyte is on. This is due toTatsuo Ishii2000-09-261-3/+3
| | | | | | | illegal call to pg_mbclipen() that is for backend only. However I have not remove the entire part of the problem, rather mark it with #ifdef MULTIBYTE_NOTUSED since we should come back with a long range solution someday.
* When the RI triggers lock the PK table, temporarily switch the current userPeter Eisentraut2000-09-251-1/+35
| | | | id to the owner of the PK table, to avoid permission problems.
* Revise Tcl/Tk configuration. Make missing Tcl after --with-tcl an error,Peter Eisentraut2000-09-258-39/+36
| | | | | | | add --without-tk option to disable Tk. We don't need the AC_PATH_XTRA test because tkConfig.sh already contains all the information about how to compile and link with X. Also make sure that libpq is up to date for libpgtcl. Remove executable bits from pgaccess.sh, but add it to pgaccess.
* Correct error in grammar for subselect-in-FROM: SQL spec does not allowTom Lane2000-09-251-8/+5
| | | | omission of alias_clause for a subselect.
* Use variable aliases, if supplied, rather than real column names inTom Lane2000-09-256-58/+62
| | | | | | | complaints about ungrouped variables. This is for consistency with behavior elsewhere, notably the fact that the relname is reported as an alias in these same complaints. Also, it'll work with subselect- in-FROM where old code didn't.
* System neglected to complain about ungrouped variables passed toTom Lane2000-09-251-2/+2
| | | | sublinks when outer query contained aggregates but no GROUP clause.
* Karel missed an ichar->chr ...Tom Lane2000-09-251-2/+2
|
* Change // to /*.Bruce Momjian2000-09-251-2/+2
|
* the patch include:Bruce Momjian2000-09-254-21/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - rename ichar() to chr() (discussed with Tom) - add docs for oracle compatible routines: btrim() ascii() chr() repeat() - fix bug with timezone in to_char() - all to_char() variants return NULL instead textin("") if it's needful. The contrib/odbc is without changes and contains same routines as main tree ... because I not sure how plans are Thomas with this :-) Karel --------------------------------------------------------------------------- This effectively one line patch should fix the fact that foreign key definitions in create table were erroring if a primary key was defined. I was using the columns list to get the columns of the table for comparison, but it got reused as a temporary list inside the primary key stuff. Stephan Szabo
* disable plperl again.Bruce Momjian2000-09-251-4/+4
|
* Acquire read lock on a buffer while writing it out, to preventTom Lane2000-09-251-32/+45
| | | | concurrent modifications to the page by other backends.
* Tweak resultmap so that geometry regress test selects the right comparisonTom Lane2000-09-241-1/+1
| | | | | file on LinuxPPC, which is identified by config.guess as powerpc-unknown-linux-gnu (not ...-gnulibc1).
* Clean up some ugly coding (hardwired constants) in index_formtuple.Tom Lane2000-09-231-12/+14
|
* Don't free() the result of getpwuid().Peter Eisentraut2000-09-221-6/+1
| | | | Discovered by Jason Tishler <Jason.Tishler@dothill.com>.
* SetPGVariable() crashed on SET DateStyle TO DEFAULT and related cases.Tom Lane2000-09-221-8/+13
|
* Add check of 'SET DateStyle TO DEFAULT'.Tom Lane2000-09-222-0/+3
|
* Replace brain-dead Autoconf macros AC_ARG_{ENABLE,WITH} with somethingPeter Eisentraut2000-09-211-1/+4
| | | | | | | that's actually useful, robust, consistent. Better plan to generate aclocal.m4 as well: use m4 include directives, rather than cat.
* *** empty log message ***Michael Meskes2000-09-215-8/+22
|
* Fix coredump in copyCommentStmt().Tom Lane2000-09-201-2/+3
|
* *** empty log message ***Michael Meskes2000-09-2014-73/+575
|
* Make sure that FlushRelationBuffers() is invoked by all paths throughTom Lane2000-09-191-42/+72
| | | | vacuum.c. This is needed to make the world safe for pg_upgrade.
* Fix GEQO optimizer to work correctly with new outer-join-capableTom Lane2000-09-196-48/+57
| | | | | | | query representation. Note that GEQO_RELS setting is now interpreted as the number of top-level items in the FROM list, not necessarily the number of relations in the query. This seems appropriate since we are only doing join-path searching over the top-level items.
* Implement differentiation between CURRENT_USER and SESSION_USER as per SQL.Peter Eisentraut2000-09-1910-59/+110
| | | | | | There is still no effective difference but it will kick in once setuid functions exist (not included here). Make old getpgusername() alias for current_user.
* *** empty log message ***Michael Meskes2000-09-1916-336/+587
|
* Make rule lister use aliases from FROM clause when a table column hasTom Lane2000-09-181-19/+49
| | | | been given an alias. Otherwise, results are incorrect.
* Move contrib/odbc/odbc.sql together with odbc driver, remove old files;Peter Eisentraut2000-09-182-5/+150
| | | | | revise ODBC "installation instructions"; update some other outdated documentation; update contrib documentation
* Only retrieve view definition if relation is a view (case statement)Philip Warner2000-09-181-2/+5
|
* Uses column select expressions to get object object owners and tests for ↵Philip Warner2000-09-182-22/+46
| | | | blank names
* Parse JOIN/ON conditions with the proper visibility of input columns,Tom Lane2000-09-171-30/+115
| | | | | | | | ie, consider only the columns coming from the JOIN clause's sub-clauses. Also detect attempts to reference columns belonging to other tables (which would still be possible using an explicitly-qualified name). I'm not sure this implements the spec's semantics 100% accurately, but at least it gives plausible behavior.
* psql forgot to close connection before re-issuing password prompt.Peter Eisentraut2000-09-172-2/+4
| | | | ([BUGS] psql can crash the backend on login, 2000-09-03)
* Improve error message for dumpRules() failureTom Lane2000-09-171-2/+2
|
* Support for DESTDIR make variable. This is used as in `make installPeter Eisentraut2000-09-1728-146/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | DESTDIR=/else/where' and prepends the value of DESTDIR to the full installation paths (e.g., /else/where/usr/local/pgsql/bin). This allows users to install the package into a location different from the one that was configured and hard-coded into various scripts, e.g., for creating binary packages. DESTDIR is in many cases preferrable over `make install prefix=/else/where' because a) `prefix' affects the path that is hard-coded into the files, which can lead to a `make install prefix=xxx' (as done by the regression test driver) corrupting the files in the source tree with wrong paths. b) it doesn't work at all if a directory was overridden to not depend on `prefix', e.g., --sysconfdir=/etc. (Updating the regression test driver to use DESTDIR is a separate undertaking.) See also autoconf@gnu.org, From: Akim Demaille <akim@epita.fr>, Date: 08 Sep 2000 12:48:59 +0200, Message-ID: <mv4em2vb1lw.fsf@nostromo.lrde.epita.fr>, Subject: Re: HTML format documentation.
* Variant horology resultfiles are inconsistent with the test, again.Tom Lane2000-09-151-14/+60
|
* Reimplement LIKE/ESCAPE as operators so that indexscan optimizationTom Lane2000-09-159-382/+379
| | | | | can still work, per recent discussion on pghackers. Correct some bugs in ILIKE implementation.
* Allow PL/pgSQL accept non ascii identifiersTatsuo Ishii2000-09-151-3/+3
|
* Minor code cleanup (cast away const-ness)Philip Warner2000-09-151-2/+2
|
* - Support for relkind = RELKIND_VIEW.Philip Warner2000-09-155-200/+217
| | | | | | | | | | | - Use symbols for tests on relkind (ie. use RELKIND_VIEW, not 'v') - Fix bug in support for -b option (== --blobs). - Dump views as views (using 'create view'). - Remove 'isViewRule' since we check the relkind when getting tables. - Now uses temp table 'pgdump_oid' rather than 'pg_dump_oid' (errors otherwise). - Added extra param for specifying handling of OID=0 and which typename to output. - Fixed bug in SQL scanner when SQL contained braces. (in rules) - Use format_type function wherever possible