aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/clog.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2017-10-03 14:58:25 +0200
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2017-10-03 14:58:25 +0200
commit182abe31387c31bef5cefa700d8ff193ff595713 (patch)
tree657076b33e6c98557306d5308eae1a95ef61b152 /src/backend/access/transam/clog.c
parent10cb052404b431fc04958286849d97209fd097f7 (diff)
downloadpostgresql-182abe31387c31bef5cefa700d8ff193ff595713.tar.gz
postgresql-182abe31387c31bef5cefa700d8ff193ff595713.zip
Fix coding rules violations in walreceiver.c
1. Since commit b1a9bad9e744 we had pstrdup() inside a spinlock-protected critical section; reported by Andreas Seltenreich. Turn those into strlcpy() to stack-allocated variables instead. Backpatch to 9.6. 2. Since commit 9ed551e0a4fd we had a pfree() uselessly inside a spinlock-protected critical section. Tom Lane noticed in code review. Move down. Backpatch to 9.6. 3. Since commit 64233902d22b we had GetCurrentTimestamp() (a kernel call) inside a spinlock-protected critical section. Tom Lane noticed in code review. Move it up. Backpatch to 9.2. 4. Since commit 1bb2558046cc we did elog(PANIC) while holding spinlock. Tom Lane noticed in code review. Release spinlock before dying. Backpatch to 9.2. Discussion: https://postgr.es/m/87h8vhtgj2.fsf@ansel.ydns.eu
Diffstat (limited to 'src/backend/access/transam/clog.c')
0 files changed, 0 insertions, 0 deletions