Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Rel9 5 stable#9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
vinpokale wants to merge442 commits intopostgres:masterfromvinpokale:REL9_5_STABLE
Closed
Changes from1 commit
Commits
Show all changes
442 commits
Select commitHold shift + click to select a range
2949987
Fix copy & paste mistake in pg_get_replication_slots().
anarazelAug 10, 2015
0ae43b6
Temporarily(?) remove BRIN isolation test.
tglsfdcAug 10, 2015
fda25b2
Further mucking with PlaceHolderVar-related restrictions on join order.
tglsfdcAug 10, 2015
f8e4e0e
Accept alternate spellings of __sparcv7 and __sparcv8.
tglsfdcAug 10, 2015
1cd4685
Fix privilege dumping from servers too old to have that type of privi…
tglsfdcAug 11, 2015
58d2e7f
Minor cleanups in slot related code.
anarazelAug 11, 2015
c5bfcc1
Fix some possible low-memory failures in regexp compilation.
tglsfdcAug 12, 2015
43a8ed2
Fix two off-by-one errors in bufmgr.c.
anarazelAug 12, 2015
2e6f6f3
Handle PQresultErrorField(PG_DIAG_SQLSTATE) returning NULL in streamu…
anarazelAug 12, 2015
fc0a640
Close some holes in BRIN page assignment
alvherreAug 12, 2015
ec94bc1
Undo mistaken tightening in join_is_legal().
tglsfdcAug 13, 2015
652ca92
Fix unitialized variables
alvherreAug 13, 2015
edebddb
Fix declaration of isarray variable.
Aug 13, 2015
1136971
Use materialize SRF mode in brin_page_items
alvherreAug 13, 2015
657cdb3
Improve regression test case to avoid depending on system catalog stats.
tglsfdcAug 13, 2015
ae372e6
Re-add BRIN isolation test
alvherreAug 13, 2015
7321841
MSVC: Exclude 'brin' contrib module
alvherreAug 13, 2015
b435f19
Update key words table for 9.5
petereAug 14, 2015
92516bf
Restore old pgwin32_message_to_UTF16() behavior outside transactions.
nmischAug 15, 2015
f19ad6f
Encoding PG_UHC is code page 949.
nmischAug 15, 2015
feb473a
Use the correct type for TableInfo->relreplident.
anarazelAug 12, 2015
d19c1b0
Don't use 'bool' as a struct member name in help_config.c.
anarazelAug 12, 2015
32951f9
vacuumdb: Don't assign negative values to a boolean.
anarazelAug 12, 2015
6942663
Correct type of waitMode variable in ExecInsertIndexTuples().
anarazelAug 15, 2015
1f6a7eb
Repair unsafe use of shared typecast-lookup table in plpgsql DO blocks.
tglsfdcAug 15, 2015
656363d
Improve documentation about MVCC-unsafe utility commands.
tglsfdcAug 15, 2015
9a18a2b
Add docs about postgres_fdw's setting of search_path and other GUCs.
tglsfdcAug 15, 2015
2c5c11a
Improve configure test for the sse4.2 crc instruction.
anarazelAug 17, 2015
f25087d
psql: Make EXECUTE PROCEDURE tab completion a bit narrower.
robertmhaasAug 18, 2015
4c3754f
Fix a few bogus statement type names in plpgsql error messages.
tglsfdcAug 18, 2015
24bf2ee
Fix bug in calculations of hash join buckets.
kgrittnAug 19, 2015
f17e247
Update config.guess and config.sub
petereAug 19, 2015
338a862
doc: Whitespace and formatting fixes
petereAug 21, 2015
0070fd8
In AlterRole, make bypassrls an int
sfrostAug 21, 2015
49f9a28
Rename 'cmd' to 'cmd_name' in CreatePolicyStmt
sfrostAug 21, 2015
20bef3f
Allow record_in() and record_recv() to work for transient record types.
tglsfdcAug 21, 2015
1944628
Fix plpython crash when returning string representation of a RECORD r…
tglsfdcAug 21, 2015
d6968e6
Do not allow *timestamp to be passed as NULL
alvherreAug 21, 2015
93fcb4a
Clean up roles from roleattributes test
sfrostAug 21, 2015
68a14ca
Avoid O(N^2) behavior when enlarging SPI tuple table in spi_printtup().
tglsfdcAug 22, 2015
63b04a3
Improve spelling
petereAug 23, 2015
27347c4
Improve whitespace
petereAug 23, 2015
5782324
Fix typo in C comment.
kgrittnAug 23, 2015
4022f94
Avoid use of float arithmetic in bipartite_match.c.
tglsfdcAug 23, 2015
b8c9135
Fix potential platform dependence in gist regression test.
tglsfdcAug 25, 2015
7c0c4d0
Docs: be explicit about datatype matching for lead/lag functions.
tglsfdcAug 25, 2015
bff62df
Reestablish alignment of pg_controldata output.
jconwayAug 26, 2015
63c6522
9.5 release notes: mention lack of char() sort improvements
bmomjianAug 26, 2015
aa9630c
release notes: backpatch removal of xpath item to 9.5 tree
bmomjianAug 26, 2015
ce56a64
release notes: abbreviated key speedup only for varchar/text
bmomjianAug 26, 2015
440fc48
dblink docs: fix typo to use "connname" (3 n's), not "conname"
bmomjianAug 27, 2015
aed688e
Simplify Perl chmod calls
petereAug 25, 2015
d03f331
Ensure locks are acquired on RLS-added relations
sfrostAug 28, 2015
ffbc387
Fix s_lock.h PPC assembly code to be compatible with native AIX assem…
tglsfdcAug 29, 2015
1c419ab
Fix sepgsql regression tests.
jconwayAug 30, 2015
bafeb01
Small grammar fix
mhaganderAug 31, 2015
bda58e9
psql: print longtable as a possible \pset option
bmomjianAug 31, 2015
0650218
docs: remove outdated note about unique indexes
bmomjianAug 31, 2015
c1564b3
Use <substeps> in pg_upgrade's procedure
alvherreSep 1, 2015
b8a439b
Allow notifications to bgworkers without database connections.
robertmhaasSep 1, 2015
813e081
pg_upgrade docs: clarify rsync and move verification step
bmomjianSep 1, 2015
e2e78ac
Document that PL/Python now returns floats using repr() not str().
tglsfdcSep 1, 2015
8d60549
Disable fsync throughout TAP test suites.
nmischSep 3, 2015
cb9cc38
Document that max_worker_processes must be high enough in standby.
MasaoFujiiSep 3, 2015
a2538da
Fix subtransaction cleanup after an outer-subtransaction portal fails.
tglsfdcSep 4, 2015
b1cbc85
Fix brin index summarizing while vacuuming.
tatsuo-ishiiSep 5, 2015
25600c4
Fix misc typos.
hlinnakaSep 5, 2015
5692b4a
Fix CreateTableSpace() so it will compile without HAVE_SYMLINK.
tglsfdcSep 5, 2015
c11100d
Move DTK_ISODOW DTK_DOW and DTK_DOY to be type UNITS rather than
gsstarkSep 6, 2015
552723a
Update site address of Snowball project
feodorSep 7, 2015
d592a87
Make GIN's cleanup pending list process interruptable
feodorSep 7, 2015
a124240
Change type of DOW/DOY to UNITS
gsstarkSep 7, 2015
73d2d2e
Add more sanity checks in contrib/sslinfo
alvherreSep 7, 2015
58feb1a
In the pg_rewind test suite, receive WAL fully before promoting.
nmischSep 7, 2015
bbbe5a9
Fix error message wording in previous sslinfo commit
alvherreSep 8, 2015
97b7b95
Add gin_fuzzy_search_limit to postgresql.conf.sample.
MasaoFujiiSep 8, 2015
9801bae
Lock all relations referred to in updatable views
sfrostSep 8, 2015
65f37b3
Remove files signaling a standby promotion request at postmaster startup
MasaoFujiiSep 9, 2015
d76113d
Fix minor bug in regexp makesearch() function.
tglsfdcSep 10, 2015
9adacca
Fix typo in setrefs.c
sfrostSep 10, 2015
edebc04
Fix setrefs.c comment properly.
tglsfdcSep 10, 2015
683bfbd
doc: Spell checking
petereSep 11, 2015
5b0317b
Correct description of PageHeaderData layout in documentation
MasaoFujiiSep 11, 2015
974f910
Fix an O(N^2) problem in foreign key references.
kgrittnSep 11, 2015
25b3ddd
Add missing ReleaseBuffer call in BRIN revmap code
alvherreSep 11, 2015
3243fce
pg_dump, pg_upgrade: allow postgres/template1 tablespace moves
bmomjianSep 11, 2015
d96c80c
Update SQL features list
petereSep 12, 2015
dc3573b
Fix typo in create_policy.sgml
sfrostSep 12, 2015
63c0f5b
doc: Remove dead links
petereSep 13, 2015
f243072
Fix the fastpath rule for jsonb_concat with an empty operand.
adunstanSep 13, 2015
fb98859
Improve log messages related to tablespace_map file
MasaoFujiiSep 15, 2015
225f539
Add POLICY to COMMENT documentation
sfrostSep 15, 2015
ed301d6
Revert "Fix an O(N^2) problem in foreign key references".
tglsfdcSep 15, 2015
23a4b89
RLS refactoring
sfrostSep 15, 2015
68b5201
Enforce ALL/SELECT policies in RETURNING for RLS
sfrostSep 15, 2015
ea00ff5
Review program help output for wording and formatting
petereSep 16, 2015
5b7aef8
Remove no-longer-used T_PrivGrantee node tag.
tglsfdcSep 16, 2015
3047a9b
Don't use "#" as an abbreviation for "number" in PL/Tcl error messages.
tglsfdcSep 16, 2015
d97bdb0
Fix documentation of regular expression character-entry escapes.
tglsfdcSep 16, 2015
104184d
Honour TEMP_CONFIG when testing pg_upgrade
adunstanSep 17, 2015
e8e2999
Order some new options on man pages more sensibly, minor improvements
petereSep 18, 2015
a39331f
Fix low-probability memory leak in regex execution.
tglsfdcSep 18, 2015
1e1ae6e
Cache argument type information in json(b) aggregate functions.
adunstanSep 18, 2015
bd313ba
Add missing serial comma
petereSep 19, 2015
866a034
Simplify GETTEXT_FILES list
petereSep 19, 2015
b46f5eb
Let compiler handle size calculation of bool types.
Sep 17, 2015
3d3bc29
Be more wary about partially-valid LOCALLOCK data in RemoveLocalLock().
tglsfdcSep 20, 2015
1be9d65
Restrict file mode creation mask during tmpfile().
nmischSep 21, 2015
6dae6ed
Remove the row_security=force GUC value.
nmischSep 21, 2015
bbdb9df
Remove the SECURITY_ROW_LEVEL_DISABLED security context bit.
nmischSep 21, 2015
3dfffac
Fix possible internal overflow in numeric multiplication.
tglsfdcSep 21, 2015
a8bb248
Fix whitespace
petereSep 21, 2015
265728e
doc: Tweak synopsis indentation for consistency
petereSep 22, 2015
62e503b
Correct value of LW_SHARED_MASK.
anarazelSep 22, 2015
55728ea
test_decoding: Protect against rare spurious test failures.
anarazelSep 22, 2015
fe6d2ab
Docs: fix typo in to_char() example.
tglsfdcSep 22, 2015
cfb2024
Make ANALYZE compute basic statistics even for types with no "=" oper…
tglsfdcSep 23, 2015
ef4fccd
Lower *_freeze_max_age minimum values.
anarazelSep 24, 2015
eac3b33
Make pg_controldata report newest XID with valid commit timestamp
MasaoFujiiSep 24, 2015
59d765b
Improve handling of collations in contrib/postgres_fdw.
tglsfdcSep 24, 2015
45d256c
Allow planner to use expression-index stats for function calls in WHERE.
tglsfdcSep 24, 2015
f1ee153
Fix psql's code for locale-aware formatting of numeric output.
tglsfdcSep 25, 2015
da4af91
Further fix for psql's code for locale-aware formatting of numeric ou…
tglsfdcSep 25, 2015
5eb7024
Further fix for psql's code for locale-aware formatting of numeric ou…
tglsfdcSep 25, 2015
c9645f7
Second try at fixing O(N^2) problem in foreign key references.
tglsfdcSep 25, 2015
bd7c348
Rework the way multixact truncations work.
anarazelSep 26, 2015
6e8af37
Remove legacy multixact truncation support.
anarazelSep 26, 2015
0160c1d
doc: Tweak "cube" index entry
petereSep 27, 2015
63ab1a3
pg_ctl: Improve help formatting and order
petereSep 27, 2015
90d0377
reindexdb: Fix mistake in help output
petereSep 27, 2015
27af56b
pg_dump: Fix some messages
petereSep 28, 2015
80e2694
Don't try to create a temp install without abs_top_builddir.
robertmhaasSep 28, 2015
90586ef
Fix ON CONFLICT DO UPDATE for tables with oids.
anarazelSep 28, 2015
ce58502
Ensure a few policies remain for pg_upgrade
sfrostSep 28, 2015
b67c9c1
Fix poor errno handling in libpq's version of our custom OpenSSL BIO.
tglsfdcSep 28, 2015
aea76d1
Fix "sesssion" typo
alvherreSep 28, 2015
c4e6d50
Fix compiler warning about unused function in non-readline case.
adunstanSep 28, 2015
60fcee9
Fix compiler warning for non-TIOCGWINSZ case
adunstanSep 28, 2015
9a6fbc2
Comment update for join pushdown.
robertmhaasSep 29, 2015
a16b9b1
Fix plperl to handle non-ASCII error message texts correctly.
tglsfdcSep 29, 2015
d8c7bb2
Code review for transaction commit timestamps
alvherreSep 29, 2015
3c4c5ac
Fix incorrect tps number calculation in "excluding connections establ…
tatsuo-ishiiSep 30, 2015
75096c4
Include policies based on ACLs needed
sfrostSep 30, 2015
91d97f0
Don't dump core when destroying an unused ParallelContext.
robertmhaasSep 30, 2015
8c8a834
Improve LISTEN startup time when there are many unread notifications.
tglsfdcOct 1, 2015
c9a8d05
Fix mention of htup.h in storage.sgml
MasaoFujiiOct 1, 2015
d312cc3
Fix documentation error in commit 8703059c6b55c427100e00a09f66534b6cc…
tglsfdcOct 1, 2015
a742ef8
Fix commit_ts for standby
alvherreOct 1, 2015
5ea47e8
Fix pg_dump to handle inherited NOT VALID check constraints correctly.
tglsfdcOct 1, 2015
867bc68
Fix message punctuation according to style guide
petereOct 2, 2015
0f51a84
pg_rewind: Improve some messages
petereOct 2, 2015
65dc1fc
Don't disable commit_ts in standby if enabled locally
alvherreOct 2, 2015
1dc6f55
Docs: add another example of creating a range type.
tglsfdcOct 2, 2015
c56b2aa
Docs: add disclaimer about hazards of using regexps from untrusted so…
tglsfdcOct 2, 2015
bb704a7
Add some more query-cancel checks to regular expression matching.
tglsfdcOct 2, 2015
51f2359
Fix potential infinite loop in regular expression execution.
tglsfdcOct 2, 2015
20c6277
Add recursion depth protections to regular expression matching.
tglsfdcOct 2, 2015
bdc5d95
Add recursion depth protection to LIKE matching.
tglsfdcOct 2, 2015
63e86ec
Clarify FDW documentation about ON CONFLICT.
robertmhaasOct 2, 2015
19b06cc
Update time zone data files to tzdata release 2015g.
tglsfdcOct 2, 2015
5f90492
doc: Make some index terms and terminology more consistent
petereOct 3, 2015
0777a88
doc: Update URLs of external projects
petereOct 3, 2015
7285d66
Fix several bugs related to ON CONFLICT's EXCLUDED pseudo relation.
anarazelOct 3, 2015
cfddb5d
Improve errhint() about replication slot naming restrictions.
anarazelOct 3, 2015
01ba789
Make BYPASSRLS behave like superuser RLS bypass.
nmischOct 4, 2015
4365d9c
Document that row_security is a boolean GUC.
nmischOct 4, 2015
e45f8f8
Group cluster_name and update_process_title settings together
petereOct 4, 2015
544ccf6
Disallow invalid path elements in jsonb_set
adunstanOct 4, 2015
ca5b42d
Fix some issues in new hashtable size calculations in nodeHash.c.
tglsfdcOct 4, 2015
e5c94c7
Further twiddling of nodeHash.c hashtable sizing calculation.
tglsfdcOct 4, 2015
39a716d
Improve contrib/pg_stat_statements' handling of garbage collection fa…
tglsfdcOct 4, 2015
e78dc6b
Release notes for 9.5beta1, 9.4.5, 9.3.10, 9.2.14, 9.1.19, 9.0.23.
tglsfdcOct 4, 2015
90f334d
ALTER TABLE .. FORCE ROW LEVEL SECURITY
sfrostOct 5, 2015
0577821
Re-Align *_freeze_max_age reloption limits with corresponding GUC lim…
anarazelOct 5, 2015
31fb4df
Do not write out WCOs in Query
sfrostOct 5, 2015
bd90147
Apply SELECT policies in INSERT/UPDATE+RETURNING
sfrostOct 5, 2015
4d67522
pgcrypto: Detect and report too-short crypt() salts.
nmischOct 5, 2015
98f30d2
Prevent stack overflow in json-related functions.
nmischOct 5, 2015
acf0da1
Prevent stack overflow in container-type functions.
nmischOct 5, 2015
7bed97d
Prevent stack overflow in query-type functions.
nmischOct 5, 2015
f9bb9c0
Add regression tests for INSERT/UPDATE+RETURNING
sfrostOct 5, 2015
56805a4
Remove outdated comment about relation level autovacuum freeze limits.
anarazelOct 5, 2015
808f1bd
Last-minute updates for release notes.
tglsfdcOct 5, 2015
149a8cd
Translation updates
petereOct 5, 2015
c0f058e
Fix insufficiently-portable regression test case.
tglsfdcOct 5, 2015
d623591
Docs: explain contrib/pg_stat_statements' handling of GC failure.
tglsfdcOct 5, 2015
7d88b3d
docs: update guidelines on when to use GIN and GiST indexes
bmomjianOct 5, 2015
b96df2c
Stamp 9.5beta1.
tglsfdcOct 5, 2015
02580df
Perform an immediate shutdown if the postmaster.pid file is removed.
tglsfdcOct 6, 2015
2169e87
docs: clarify JSONB operator descriptions
bmomjianOct 7, 2015
9445a1c
docs: Map operator @> to the proper SGML escape for '>'
bmomjianOct 7, 2015
c86555f
docs: add JSONB containment example of a key and empty object
bmomjianOct 7, 2015
fc95734
Improve documentation of the role-dropping process.
tglsfdcOct 7, 2015
48a78d8
Factor out encoding specific tests for json
adunstanOct 7, 2015
36d4a50
Fix typo in docs.
robertmhaasOct 8, 2015
e50431a
Fix uninitialized-variable bug.
tglsfdcOct 9, 2015
a26609e
Handle append_rel_list in expand_security_qual
sfrostOct 9, 2015
2539b9b
Make prove_installcheck remove the old log directory, if any.
nmischOct 12, 2015
7109c60
Fix whitespace
petereOct 12, 2015
f75c4fc
Use JsonbIteratorToken consistently in automatic variable declarations.
nmischOct 12, 2015
a151a5c
Fix "pg_ctl start -w" to test child process status directly.
tglsfdcOct 12, 2015
34557f5
Cause TestLib.pm to define $windows_os in all branches.
tglsfdcOct 12, 2015
c6ab511
Sigh, need "use Config" as well.
tglsfdcOct 12, 2015
39ac293
On Windows, ensure shared memory handle gets closed if not being used.
tglsfdcOct 13, 2015
bf8a361
Improve INSERT .. ON CONFLICT error message.
robertmhaasOct 13, 2015
41179e7
-- email subject limit -----------------------------------------
bmomjianOct 13, 2015
54e07be
Fix bogus comments
alvherreOct 15, 2015
5043193
Allow FDWs to push down quals without breaking EvalPlanQual rechecks.
robertmhaasOct 15, 2015
a93b378
Fix NULL handling in datum_to_jsonb().
tglsfdcOct 15, 2015
26981d2
Don't send protocol messages to a shm_mq that no longer exists.
robertmhaasOct 16, 2015
c451eaf
Transfer current command counter ID to parallel workers.
robertmhaasOct 16, 2015
d43e3ad
Tighten up application of parallel mode checks.
robertmhaasOct 16, 2015
14129d1
Invalidate caches after cranking up a parallel worker transaction.
robertmhaasOct 16, 2015
73d71cd
Fix a problem with parallel workers being unable to restore role.
robertmhaasOct 16, 2015
2288441
Remove cautions about using volatile from spin.h.
robertmhaasOct 16, 2015
0889e18
Fix regular-expression compiler to handle loops of constraint arcs.
tglsfdcOct 16, 2015
cff9e06
Fix O(N^2) performance problems in regular-expression compiler.
tglsfdcOct 16, 2015
e9cf3dc
Improve performance of fixempties() pass in regular-expression compiler.
tglsfdcOct 16, 2015
1bb0fbc
Improve performance of pullback/pushfwd in regular-expression compiler.
tglsfdcOct 16, 2015
e91cfde
Improve memory-usage accounting in regular-expression compiler.
tglsfdcOct 16, 2015
6a7a2ee
Miscellaneous cleanup of regular-expression compiler.
tglsfdcOct 16, 2015
9372614
Fix order of arguments in ecpg generated typedef command.
Oct 16, 2015
43e36f8
Fix incorrect handling of lookahead constraints in pg_regprefix().
tglsfdcOct 19, 2015
01a96c7
Eschew "RESET statement_timeout" in tests.
nmischOct 20, 2015
ed6c516
Fix back-patch of commit 8e3b4d9d40244c037bbc6e182ea3fabb9347d482.
nmischOct 20, 2015
b06f1f2
Put back ssl_renegotiation_limit parameter, but only allow 0.
robertmhaasOct 20, 2015
b3967f8
Fix incorrect comment in plannodes.h
robertmhaasOct 20, 2015
2bfd2fe
doc: Move documentation of max_wal_size to better position
petereOct 20, 2015
5fb20a5
Fix incorrect translation of minus-infinity datetimes for json/jsonb.
tglsfdcOct 20, 2015
85e30f5
doc: Add advice on updating checkpoint_segments to max_wal_size
petereOct 22, 2015
ac9a016
shm_mq: Fix failure to notice a dead counterparty when nowait is used.
robertmhaasOct 22, 2015
17b07af
Add two missing cases to ATWrongRelkindError.
robertmhaasOct 22, 2015
44390e3
shm_mq: Repair breakage from previous commit.
robertmhaasOct 23, 2015
80ae841
Measure string lengths only once
alvherreOct 27, 2015
68cc162
Cleanup commit timestamp module activaction, again
alvherreOct 27, 2015
cf42abc
Fix BRIN free space computations
alvherreOct 27, 2015
3e9e033
Document BRIN's inclusion opclass framework
alvherreOct 27, 2015
c569491
Fix secondary expected output for commit_ts test
alvherreOct 28, 2015
e53e2a1
Fix incorrect message in ATWrongRelkindError.
robertmhaasOct 28, 2015
d17d512
Add missing serial comma, for consistency.
robertmhaasOct 28, 2015
0bc3071
Message style improvements
petereOct 29, 2015
9a1a229
Docs: add example clarifying use of nested JSON containment.
tglsfdcOct 29, 2015
7852f73
Fix typo in bgworker.c
robertmhaasOct 30, 2015
21e634e
doc: security_barrier option is a Boolean, not a string.
robertmhaasOct 30, 2015
50ca917
Fix serialization anomalies due to race conditions on INSERT.
kgrittnOct 31, 2015
67d4738
Add RMV to list of commands taking AE lock.
kgrittnNov 2, 2015
fd5ce6b
shm_mq: Third attempt at fixing nowait behavior in shm_mq_receive.
robertmhaasNov 3, 2015
f4057cd
Code + docs review for unicode linestyle patch.
tglsfdcNov 3, 2015
fdae4a9
Remove obsolete advice about doubling backslashes in regex escapes.
tglsfdcNov 3, 2015
1d97b25
Improve comments about abbreviation abort.
robertmhaasNov 3, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Ensure locks are acquired on RLS-added relations
During fireRIRrules(), get_row_security_policies can add tosecurityQuals and withCheckOptions.  Make sure to lock any relationsadded at that point and before firing RIR rules on those expressions.Back-patch to 9.5 where RLS was added.
  • Loading branch information
@sfrost
sfrost committedAug 28, 2015
commitd03f3314b35cc4ac2be832cf63ae67a69ee4d93c
19 changes: 19 additions & 0 deletionssrc/backend/rewrite/rewriteHandler.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1787,6 +1787,8 @@ fireRIRrules(Query *parsetree, List *activeRIRs, bool forUpdatePushedDown)
{
if (hasSubLinks)
{
acquireLocksOnSubLinks_context context;

/*
* Recursively process the new quals, checking for infinite
* recursion.
Expand All@@ -1799,6 +1801,23 @@ fireRIRrules(Query *parsetree, List *activeRIRs, bool forUpdatePushedDown)

activeRIRs = lcons_oid(RelationGetRelid(rel), activeRIRs);

/*
* get_row_security_policies just passed back securityQuals
* and/or withCheckOptions, and there were SubLinks, make sure
* we lock any relations which are referenced.
*
* These locks would normally be acquired by the parser, but
* securityQuals and withCheckOptions are added post-parsing.
*/
context.for_execute = true;
(void) acquireLocksOnSubLinks((Node *) securityQuals, &context);
(void) acquireLocksOnSubLinks((Node *) withCheckOptions,
&context);

/*
* Now that we have the locks on anything added by
* get_row_security_policies, fire any RIR rules for them.
*/
expression_tree_walker((Node *) securityQuals,
fireRIRonSubLink, (void *) activeRIRs);

Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp