Host variables corresponding bytea type in ecpg

Started by Kato, Shoover 9 years ago4 messageshackers
Beta feature

Hackorum builds and tests every patch posted to the lists, not only commitfest submissions. This is Hackorum's own CI rather than the PostgreSQL project's, and it is still under testing - please report anything that looks wrong.

won't retrysuccessCI history

You can run a PostgreSQL built from this patch straight from Docker, with no checkout and no build:

docker run --rm -p 5432:5432 ghcr.io/hackorum-dev/postgres-patch:t36483
psql -h localhost -U postgres

Built from patchset v1 (message #1), July 28, 2026 at 07:14 AM.

Every patchset is also pushed to a branch of our PostgreSQL fork, so you can check out the same tree CI built. Without a PostgreSQL checkout:

git clone --branch t36483_1 https://github.com/hackorum-dev/postgres.git

In a checkout you already have, add the fork once:

git remote add hackorum https://github.com/hackorum-dev/postgres.git

then, for this patchset and every later one:

git fetch hackorum t36483_1 && git checkout t36483_1

Patchset v1 (message #1) is on t36483_1

Jump to latest
#1Kato, Sho
kato-sho@jp.fujitsu.com

Hi,

I tried to use the bytea type with ecpg, but the corresponding host variable was not described in the manual.

https://www.postgresql.org/docs/devel/static/ecpg-variables.html#ecpg-variables-type-mapping

According to the test code, the bytea type seems to correspond to char *.

src/interfaces/ecpg/test/sql/binary.pgc

I think that it is better to describe that the host variable corresponding to the bytea type is char * in the manual, but what about it?
I attach modified patch.

regards, Sho Kato.
--
Kato Sho

Attachments:

t36483_1
fix_ecpg_host_variables_in_doc_v1.patchapplication/octet-stream; name=fix_ecpg_host_variables_in_doc_v1.patchDownload+5-0
#2Michael Meskes
meskes@postgresql.org
In reply to: Kato, Sho (#1)
Re: Host variables corresponding bytea type in ecpg

I attach modified patch.

Thank you, committed.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Michael Meskes (#2)
Re: Host variables corresponding bytea type in ecpg

Michael Meskes <meskes@postgresql.org> writes:

I attach modified patch.

Thank you, committed.

I don't see a git push for this?

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#4Michael Meskes
meskes@postgresql.org
In reply to: Tom Lane (#3)
Re: Host variables corresponding bytea type in ecpg

I attach modified patch.

Thank you, committed.

I don't see a git push for this?

Oops, should be there now.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers