pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedBinary format for array in COPY-command
2+ messages / 2 participants
[nested] [flat]
* Binary format for array in COPY-command
@ 2017-12-05 11:43 vladqt@gmail.com
2017-12-05 16:22 ` Re: Binary format for array in COPY-command Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: vladqt@gmail.com @ 2017-12-05 11:43 UTC (permalink / raw)
To: pgsql-docs
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/9.5/static/datatype-bit.html
Description:
Hi,
I could not find description of arrays for 9.6 Postgres:
https://www.postgresql.org/docs/9.6/static/sql-copy.html
Array fields have different format than all other data. They have it's own
header - and i want to know field description.
I added hardcode support of smallint[] into this module:
https://github.com/altaurog/pgcopy
And need full description to create full support of arrays.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Binary format for array in COPY-command
2017-12-05 11:43 Binary format for array in COPY-command vladqt@gmail.com
@ 2017-12-05 16:22 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2017-12-05 16:22 UTC (permalink / raw)
To: vladqt@gmail.com; +Cc: pgsql-docs
vladqt@gmail.com writes:
> I could not find description of arrays for 9.6 Postgres:
> https://www.postgresql.org/docs/9.6/static/sql-copy.html
I do not think it's explicitly documented anyplace (neither is
the binary format for anything else, really). But you can work
it out easily enough by looking at array_send and array_recv:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=blob_plain;f=src/backend/utils/adt/arrayfuncs....
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-12-05 16:22 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-12-05 11:43 Binary format for array in COPY-command vladqt@gmail.com
2017-12-05 16:22 ` 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