Andres Freund
e0c4ec0728
Replace uses of heap_open et al with the corresponding table_* function.
...
Author: Andres Freund
Discussion: https://postgr.es/m/20190111000539.xbv7s6w7ilcvm7dp@alap3.anarazel.de
2019-01-21 10:51:37 -08:00
Andres Freund
111944c5ee
Replace heapam.h includes with {table, relation}.h where applicable.
...
A lot of files only included heapam.h for relation_open, heap_open etc
- replace the heapam.h include in those files with the narrower
header.
Author: Andres Freund
Discussion: https://postgr.es/m/20190111000539.xbv7s6w7ilcvm7dp@alap3.anarazel.de
2019-01-21 10:51:37 -08:00
Bruce Momjian
97c39498e5
Update copyright for 2019
...
Backpatch-through: certain files through 9.4
2019-01-02 12:44:25 -05:00
Andres Freund
937e4e5099
Fix sepgsql compile error caused by oid removal.
...
Per buildfarm animal rhinoceros. I (Andres) missed replacing a few
uses of ObjectIdAttributeNumber in sepgsql.
It's quite probable that the sepgsql test output will need more
adapting than done in 578b22...
Author: Thomas Munro
Discussion: https://postgr.es/m/CAEepm=2Sk+66HJV8FLDfm_sKTn22j7cWTY_Y1Rok3RxeWL_Y0w@mail.gmail.com
2018-11-20 20:03:46 -08:00
Bruce Momjian
9d4649ca49
Update copyright for 2018
...
Backpatch-through: certain files through 9.3
2018-01-02 23:30:12 -05:00
Tom Lane
e7941a9766
Replace over-optimistic Assert in partitioning code with a runtime test.
...
get_partition_parent felt that it could simply Assert that systable_getnext
found a tuple. This is unlike any other caller of that function, and it's
unsafe IMO --- in fact, the reason I noticed it was that the Assert failed.
(OK, I was working with known-inconsistent catalog contents, but I wasn't
expecting the DB to fall over quite that violently. The behavior in a
non-assert-enabled build wouldn't be very nice, either.) Fix it to do what
other callers do, namely an actual runtime-test-and-elog.
Also, standardize the wording of elog messages that are complaining about
unexpected failure of systable_getnext. 90% of them say "could not find
tuple for <object>", so make the remainder do likewise. Many of the
holdouts were using the phrasing "cache lookup failed", which is outright
misleading since no catcache search is involved.
2017-06-04 16:20:03 -04:00
Bruce Momjian
1d25779284
Update copyright via script for 2017
2017-01-03 13:48:53 -05:00
Bruce Momjian
ee94300446
Update copyright for 2016
...
Backpatch certain files through 9.1
2016-01-02 13:33:40 -05:00
Bruce Momjian
4baaf863ec
Update copyright for 2015
...
Backpatch certain files through 9.0
2015-01-06 11:43:47 -05:00
Bruce Momjian
7e04792a1c
Update copyright for 2014
...
Update all files in head, and files COPYRIGHT and legal.sgml in all back
branches.
2014-01-07 16:05:30 -05:00
Bruce Momjian
9af4159fce
pgindent run for release 9.3
...
This is the first run of the Perl-based pgindent script. Also update
pgindent instructions.
2013-05-29 16:58:43 -04:00
Robert Haas
b620fdabba
sepgql: Use getObjectIdentity rather than getObjectDescription.
...
KaiGai Kohei, based on a suggestion from Álvaro Herrera
2013-04-12 08:35:55 -04:00
Robert Haas
e965e6344c
sepgsql: Enforce db_schema:search permission.
...
KaiGai Kohei, with comment and doc wordsmithing by me
2013-04-05 08:51:31 -04:00
Robert Haas
0f05840bf4
Allow sepgsql labels to depend on object name.
...
The main change here is to call security_compute_create_name_raw()
rather than security_compute_create_raw(). This ups the minimum
requirement for libselinux from 2.0.99 to 2.1.10, but it looks
like most distributions will have picked that up before 9.3 is out.
KaiGai Kohei
2013-03-28 15:41:38 -04:00
Robert Haas
1cea9bbb21
sepgsql: Support for new post-ALTER access hook.
...
KaiGai Kohei
2013-03-27 08:14:19 -04:00
Bruce Momjian
bd61a623ac
Update copyrights for 2013
...
Fully update git head, and update back branches in ./COPYRIGHT and
legal.sgml files.
2013-01-01 17:15:01 -05:00
Robert Haas
aa2b237ce5
sepgsql cleanups.
...
This is needed to match recent changes elsewhere. Along the way, some
renaming for clarity.
KaiGai Kohei
2012-09-05 14:01:59 -04:00
Bruce Momjian
927d61eeff
Run pgindent on 9.2 source tree in preparation for first 9.3
...
commit-fest.
2012-06-10 15:20:04 -04:00
Robert Haas
e914a144d3
sepgsql DROP support.
...
KaiGai Kohei
2012-03-09 15:18:45 -05:00
Bruce Momjian
e126958c2e
Update copyright notices for year 2012.
2012-01-01 18:01:58 -05:00
Robert Haas
e1042a3484
sepgsql: Check CREATE permissions for some object types.
...
KaiGai Kohei, reviewed by Dimitri Fontaine and me.
2011-12-21 09:14:02 -05:00
Robert Haas
291873c155
Teach sepgsql about database labels.
...
This is still a bit of a hack, but it's better than the old way, for sure.
KaiGai Kohei, with one change by me to make it compile
2011-09-23 17:09:34 -04:00
Robert Haas
4232c4b406
Userspace access vector cache for contrib/sepgsql.
...
KaiGai Kohei
2011-09-01 08:38:40 -04:00
Bruce Momjian
bf50caf105
pgindent run before PG 9.1 beta 1.
2011-04-10 11:42:00 -04:00
Robert Haas
c7689ee733
Various sepgsql corrections.
...
KaiGai Kohei
2011-02-02 23:39:43 -05:00
Robert Haas
968bc6fac9
sepgsql, an SE-Linux integration for PostgreSQL
...
This is still pretty rough - among other things, the documentation
needs work, and the messages need a visit from the style police -
but this gets the basic framework in place.
KaiGai Kohei
2011-01-23 20:48:27 -05:00