pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro 7+ messages / 1 participants [nested] [flat]
* pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro @ 2019-09-08 21:01 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-09-08 21:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix RelationIdGetRelation calls that weren't bothering with error checks. Some of these are quite old, but that doesn't make them not bugs. We'd rather report a failure via elog than SIGSEGV. While at it, uniformly spell the error check as !RelationIsValid(rel) rather than a bare rel == NULL test. The machine code is the same but it seems better to be consistent. Coverity complained about this today, not sure why, because the mistake is in fact old. Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/69f883fef14a3fc5849126799278abcc43f40f56 Modified Files -------------- src/backend/access/heap/heapam.c | 3 +++ src/backend/replication/logical/reorderbuffer.c | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro @ 2019-09-08 21:01 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-09-08 21:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix RelationIdGetRelation calls that weren't bothering with error checks. Some of these are quite old, but that doesn't make them not bugs. We'd rather report a failure via elog than SIGSEGV. While at it, uniformly spell the error check as !RelationIsValid(rel) rather than a bare rel == NULL test. The machine code is the same but it seems better to be consistent. Coverity complained about this today, not sure why, because the mistake is in fact old. Branch ------ REL_10_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/deba7c6fc3ccbaadfccbf70f73480d33a27b15b4 Modified Files -------------- src/backend/access/heap/heapam.c | 4 ++++ src/backend/replication/logical/reorderbuffer.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro @ 2019-09-08 21:01 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-09-08 21:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix RelationIdGetRelation calls that weren't bothering with error checks. Some of these are quite old, but that doesn't make them not bugs. We'd rather report a failure via elog than SIGSEGV. While at it, uniformly spell the error check as !RelationIsValid(rel) rather than a bare rel == NULL test. The machine code is the same but it seems better to be consistent. Coverity complained about this today, not sure why, because the mistake is in fact old. Branch ------ REL9_6_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1d87b674828ad3d49b74d0190184d861f183fb30 Modified Files -------------- src/backend/access/heap/heapam.c | 4 ++++ src/backend/replication/logical/reorderbuffer.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro @ 2019-09-08 21:01 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-09-08 21:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix RelationIdGetRelation calls that weren't bothering with error checks. Some of these are quite old, but that doesn't make them not bugs. We'd rather report a failure via elog than SIGSEGV. While at it, uniformly spell the error check as !RelationIsValid(rel) rather than a bare rel == NULL test. The machine code is the same but it seems better to be consistent. Coverity complained about this today, not sure why, because the mistake is in fact old. Branch ------ REL9_4_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/5f73d7294d9fbaa36a0167e7aa6fa693c9c724e6 Modified Files -------------- src/backend/access/heap/heapam.c | 4 ++++ src/backend/replication/logical/reorderbuffer.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro @ 2019-09-08 21:01 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-09-08 21:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix RelationIdGetRelation calls that weren't bothering with error checks. Some of these are quite old, but that doesn't make them not bugs. We'd rather report a failure via elog than SIGSEGV. While at it, uniformly spell the error check as !RelationIsValid(rel) rather than a bare rel == NULL test. The machine code is the same but it seems better to be consistent. Coverity complained about this today, not sure why, because the mistake is in fact old. Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/1192e3fb54ce57f57399490d70af617ebc12605c Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro @ 2019-09-08 21:01 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-09-08 21:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix RelationIdGetRelation calls that weren't bothering with error checks. Some of these are quite old, but that doesn't make them not bugs. We'd rather report a failure via elog than SIGSEGV. While at it, uniformly spell the error check as !RelationIsValid(rel) rather than a bare rel == NULL test. The machine code is the same but it seems better to be consistent. Coverity complained about this today, not sure why, because the mistake is in fact old. Branch ------ REL9_5_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/87ee1587c94d04e8c91d9346cd632369bede586c Modified Files -------------- src/backend/access/heap/heapam.c | 4 ++++ src/backend/replication/logical/reorderbuffer.c | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro @ 2019-09-08 21:01 Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 7+ messages in thread From: Tom Lane @ 2019-09-08 21:01 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix RelationIdGetRelation calls that weren't bothering with error checks. Some of these are quite old, but that doesn't make them not bugs. We'd rather report a failure via elog than SIGSEGV. While at it, uniformly spell the error check as !RelationIsValid(rel) rather than a bare rel == NULL test. The machine code is the same but it seems better to be consistent. Coverity complained about this today, not sure why, because the mistake is in fact old. Branch ------ REL_12_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/2403e54fff3b47735fc1a77c51e407c3596d3331 Modified Files -------------- src/backend/replication/logical/reorderbuffer.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2019-09-08 21:01 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2019-09-08 21:01 pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro Tom Lane <tgl@sss.pgh.pa.us> 2019-09-08 21:01 pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro Tom Lane <tgl@sss.pgh.pa.us> 2019-09-08 21:01 pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro Tom Lane <tgl@sss.pgh.pa.us> 2019-09-08 21:01 pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro Tom Lane <tgl@sss.pgh.pa.us> 2019-09-08 21:01 pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro Tom Lane <tgl@sss.pgh.pa.us> 2019-09-08 21:01 pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro Tom Lane <tgl@sss.pgh.pa.us> 2019-09-08 21:01 pgsql: Fix RelationIdGetRelation calls that weren't bothering with erro Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox