pgsql: Fix handling of structure for bytea data type in ECPG

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix handling of structure for bytea data type in ECPG
Date: 2020-07-27 01:30:08
Message-ID: E1jzrxw-0004ow-Fl@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix handling of structure for bytea data type in ECPG

Some code paths dedicated to bytea used the structure for varchar. This
did not lead to any actual bugs, as bytea and varchar have the same
definition, but it could become a trap if one of these definitions
changes for a new feature or a bug fix.

Issue introduced by 050710b.

Author: Shenhao Wang
Reviewed-by: Vignesh C, Michael Paquier
Discussion: https://postgr.es/m/07ac7dee1efc44f99d7f53a074420177@G08CNEXMBPEKD06.g08.fujitsu.local
Backpatch-through: 12

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e971357961f2bf5bddebb3f68ba8b55954709486

Modified Files
--------------
src/interfaces/ecpg/ecpglib/data.c | 4 ++--
src/interfaces/ecpg/ecpglib/descriptor.c | 4 ++--
src/interfaces/ecpg/ecpglib/execute.c | 6 +++---
3 files changed, 7 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-07-27 07:03:47 pgsql: Fix corner case with 16kB-long decompression in pgcrypto, take 2
Previous Message Jeff Davis 2020-07-26 23:14:42 pgsql: Fix LookupTupleHashEntryHash() pipeline-stall issue.