aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/array_userfuncs.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2016-12-05 20:29:41 +0900
committerFujii Masao <fujii@postgresql.org>2016-12-05 20:32:00 +0900
commit8606271640401b5a4efd20c54e2850fa88118eb8 (patch)
treeb3c905d9c81b30aa3ec10defc4ffafd8f401d096 /src/backend/utils/adt/array_userfuncs.c
parent25c06a1ed647dca4f308026e00fd3e830b4ba383 (diff)
downloadpostgresql-8606271640401b5a4efd20c54e2850fa88118eb8.tar.gz
postgresql-8606271640401b5a4efd20c54e2850fa88118eb8.zip
Fix incorrect output from gin_desc().
Previously gin_desc() displayed incorrect output "unknown action 0" for XLOG_GIN_INSERT and XLOG_GIN_VACUUM_DATA_LEAF_PAGE records with valid actions. The cause of this problem was that gin_desc() wrongly used XLogRecGetData() to extract data from those records. Since they were registered by XLogRegisterBufData(), gin_desc() should have used XLogRecGetBlockData(), instead, like gin_redo(). Also there were other differences about how to treat XLOG_GIN_INSERT record between gin_desc() and gin_redo(). This commit fixes gin_desc() routine so that it treats those records in the same way as gin_redo(). Batch-patch to 9.5 where WAL record format was revamped and XLogRegisterBufData() was added. Reported-By: Andres Freund Reviewed-By: Tom Lane Discussion: <20160509194645.7lewnpw647zegx2m@alap3.anarazel.de>
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions