git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 65a603e) | patch
Use LEFT JOINs in some system views in case referenced row doesn't exist.
2016年8月19日 21:13:47 +0000 (17:13 -0400)
2016年8月19日 21:13:47 +0000 (17:13 -0400)
commit 8299471c37fff0b0f5a777a12f920125310c0efe
Use LEFT JOINs in some system views in case referenced row doesn't exist.

In particular, left join to pg_authid so that rows in pg_stat_activity
don't disappear if the session's owning user has been dropped.
Also convert a few joins to pg_database to left joins, in the same spirit,
though that case might be harder to hit. We were doing this in other
views already, so it was a bit inconsistent that these views didn't.

Oskari Saarenmaa, with some further tweaking by me

Discussion: <56E87CD8.60007@ohmu.fi>
src/backend/catalog/system_views.sql diff | blob | blame | history
src/include/catalog/catversion.h diff | blob | blame | history
src/test/regress/expected/rules.out diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /