From 3beac831cf40e5361fa4edda0b2d25af91e14ff3 Mon Sep 17 00:00:00 2001 From: Manni Wood Date: Thu, 17 Nov 2016 22:25:00 -0500 Subject: [PATCH] Adds formatting notes --- values.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/values.go b/values.go index 77ae0bca..8a7a49cb 100644 --- a/values.go +++ b/values.go @@ -3058,7 +3058,10 @@ func encodeAclItemSlice(w *WriteBuf, oid Oid, aclitems []AclItem) error { } // parseAclItemArray parses the textual representation -// of the aclitem[] type. +// of the aclitem[] type. The textual representation is chosen because +// Pg's src/backend/utils/adt/acl.c has only in/out (text) not send/recv (bin). +// See https://www.postgresql.org/docs/current/static/arrays.html#ARRAYS-IO +// for formatting notes. func parseAclItemArray(arr string) ([]AclItem, error) { reader := strings.NewReader(arr) // Difficult to guess a performant initial capacity for a slice of