Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMFzZ-0004Zj-Gh for pgsql-docs@arkaria.postgresql.org; Tue, 05 Dec 2017 16:22:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eMFzZ-0001b1-3l for pgsql-docs@arkaria.postgresql.org; Tue, 05 Dec 2017 16:22:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eMFzY-0001ar-V1 for pgsql-docs@lists.postgresql.org; Tue, 05 Dec 2017 16:22:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eMFzS-0004cZ-T0 for pgsql-docs@postgresql.org; Tue, 05 Dec 2017 16:22:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vB5GMZwt007777; Tue, 5 Dec 2017 11:22:35 -0500 From: Tom Lane To: vladqt@gmail.com cc: pgsql-docs@postgresql.org Subject: Re: Binary format for array in COPY-command In-reply-to: <20171205114313.27103.21233@wrigleys.postgresql.org> References: <20171205114313.27103.21233@wrigleys.postgresql.org> Comments: In-reply-to vladqt@gmail.com message dated "Tue, 05 Dec 2017 11:43:13 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7775.1512490955.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 05 Dec 2017 11:22:35 -0500 Message-ID: <7776.1512490955@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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=3Dpostgresql.git;a=3Dblob_plain;f=3Ds= rc/backend/utils/adt/arrayfuncs.c;hb=3DHEAD regards, tom lane