summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix permission-checking bug reported by Tim Burgess 10-Feb-03 (this timeTom Lane2004-01-1418-183/+183
| | | | | | | | | for sure...). Rather than relying on the query context of a rangetable entry to identify what permissions it wants checked, store a full AclMode mask in each RTE, and check exactly those bits. This allows an RTE specifying, say, INSERT privilege on a view to be copied into a derived UPDATE query without changing meaning. Per recent discussion thread. initdb forced due to change of stored rule representation.
* Translation updatesDennis Bjorklund2004-01-141-3/+3
|
* pg_settings should have UPDATE privilege allowed to public.Tom Lane2004-01-141-1/+3
|
* The no-updates-to-system-catalogs-unless-usecatupd restriction shouldTom Lane2004-01-141-7/+13
| | | | not apply to system views. It never mattered before 7.4, but it does now.
* Revert ill-starred change of 13-Feb-02: it appeared to fix a problem ofTom Lane2004-01-141-24/+22
| | | | | | | | | incorrect permissions checking, but in fact disabled most all permissions checks for view updates. This corrects problems reported by Sergey Yatskevich among others, at the cost of re-introducing the problem previously reported by Tim Burgess. However, since we'd lived with that problem for quite awhile without knowing it, we can live with it awhile longer until a proper fix can be made in 7.5.
* Translation updatePeter Eisentraut2004-01-131-216/+188
|
* Fix ecpg test program to properly access int* null indicator.Bruce Momjian2004-01-132-2/+3
|
* Fix another place that wasn't maintaining AND/OR flatness of anTom Lane2004-01-122-15/+65
| | | | already-canonicalized qual expression.
* Preserve AND/OR flatness during eval_const_expressions(). This seems aTom Lane2004-01-121-84/+154
| | | | | useful improvement in any case, and it keeps the new logic for restrictinfo structures happy. Per report from Kris Jurka.
* Translation updatesDennis Bjorklund2004-01-111-495/+552
|
* Mark string for translation.Dennis Bjorklund2004-01-111-2/+2
|
* Translation updatesDennis Bjorklund2004-01-111-10/+8
|
* Translation updatesDennis Bjorklund2004-01-111-73/+99
|
* Add CREATE TRIGGER, CREATE INDEX, and CREATE SEQUENCE to the list ofNeil Conway2004-01-116-25/+147
| | | | | | | expressions supported by CREATE SCHEMA. Also added the beginning of some regression tests for CREATE SCHEMA; plenty more work is needed here.
* Drops in the CreateProcess calls for Win32 (essentially wrapping up theBruce Momjian2004-01-116-16/+100
| | | | | | fork/exec portion of the port), and fixes a handful of whitespace issues Claudio Natoli
* Remove the following unused type definitions: bool8, bool16, bool32, word8,Neil Conway2004-01-101-22/+3
| | | | word16, and word32.
* Implement "WITH / WITHOID OIDS" clause for CREATE TABLE AS. This isNeil Conway2004-01-1012-36/+142
| | | | | | | | | | intended to allow application authors to insulate themselves from changes to the default value of 'default_with_oids' in future releases of PostgreSQL. This patch also fixes a bug in the earlier implementation of the 'default_with_oids' GUC variable: code in gram.y should not examine the value of GUC variables directly due to synchronization issues.
* Translation updatesPeter Eisentraut2004-01-102-1055/+807
|
* Improve has_nullable_targetlist() to allow strict functions of simpleTom Lane2004-01-102-28/+36
| | | | | | variables, not just simple variables. This was foreseen in the original coding of this routine, but not implemented until now. Responds to performance gripe from Laurent Perez.
* Translation updatesDennis Bjorklund2004-01-101-330/+298
|
* Translation updatesDennis Bjorklund2004-01-101-3125/+3354
|
* Translation updatesDennis Bjorklund2004-01-102-2/+437
|
* Make non-wait pg_ctl start/stop message more accurate.Bruce Momjian2004-01-101-3/+9
|
* Allow BEGIN WORK to specify transaction isolation level, like STARTBruce Momjian2004-01-102-6/+22
| | | | TRANSACTION.
* Fix subquery pullup logic to not be fooled when a view that appearsTom Lane2004-01-101-5/+33
| | | | | | 'simple' references another view that is not simple. Must recheck conditions after performing recursive pullup. Per example from Laurent Perez, 9-Jan-04.
* Oops, can't do cpp tests inside macros; make two macros instead.Bruce Momjian2004-01-091-4/+7
|
* Remove ereport() from failed connection; already done, per Tom.Bruce Momjian2004-01-091-5/+1
|
* Fix for cancel key restarting postmaster, from ClaudioBruce Momjian2004-01-091-2/+2
|
* Have psql help show \w parameter as requied.Bruce Momjian2004-01-091-2/+2
|
* Allow psql to handle tilde user expansion for file names.Bruce Momjian2004-01-094-4/+83
| | | | Zach Irmen
* Change PG_DELAY from msec to usec and use it consistenly rather thanBruce Momjian2004-01-094-37/+32
| | | | select(). Add Win32 Sleep() for delay.
* Translation updatesDennis Bjorklund2004-01-091-650/+413
|
* Add WIN32 pipe implementation that uses sockets.Bruce Momjian2004-01-092-4/+72
| | | | Claudio Natoli
* Remove duplicate include of value.h. I think it got in because Tom and I ↵Bruce Momjian2004-01-091-2/+1
| | | | both added it.
* Add comment about synchronous signals.Bruce Momjian2004-01-091-2/+6
|
* Allow libpq to do thread-safe SIGPIPE handling. This allows it toBruce Momjian2004-01-098-10/+146
| | | | | | | | 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.
* Fix incorrect SQL syntax emitted when -E is given without -P.Tom Lane2004-01-091-5/+5
| | | | Report and fix from Martin Pitt.
* Fix a spelling mistake in a comment.Neil Conway2004-01-081-2/+2
|
* Throw compile error if our non-thread-safe snprintf is used.Bruce Momjian2004-01-081-1/+6
|
* Update OSF thread flags for non-gcc compiles.Bruce Momjian2004-01-081-1/+5
|
* Translation updatesDennis Bjorklund2004-01-081-385/+456
|
* Translation updatesDennis Bjorklund2004-01-081-4/+4
|
* [Forced commit to add log message that I fat-fingered last time]Tom Lane2004-01-081-2/+1
| | | | | Give a more reasonable error message when lock file exists but has zero length; prior code confused this with could-not-read-file case.
* Fix Solaris thread build settings for non-gcc compilers.Bruce Momjian2004-01-081-3/+4
|
* makeTom Lane2004-01-071-3/+3
|
* Make some improvements in the intelligence of the partial-indexTom Lane2004-01-071-52/+190
| | | | | | | | | 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.
* Translation updatesDennis Bjorklund2004-01-071-23/+266
|
* Add missing inclusion of nodes/value.h.Tom Lane2004-01-071-1/+2
|
* More janitorial work: remove the explicit casting of NULL literals to aNeil Conway2004-01-0771-436/+424
| | | | | | | | 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.
* Cleanup: move the 'Value' node into a separate file, rather than puttingNeil Conway2004-01-077-128/+146
| | | | it in the same file as the 'List' node.