Re: [GSoC] Question about returning bytea array - Mailing list pgsql-hackers

From Charles Cui
Subject Re: [GSoC] Question about returning bytea array
Date
Msg-id CA+SXE9ujZPx-mgo=fKrhcKSj773zLZOFdLZOobtM0e7DKcWK3Q@mail.gmail.com
Whole thread Raw
In response to Re: [GSoC] Question about returning bytea array  (Andrew Gierth <andrew@tao11.riddles.org.uk>)
List pgsql-hackers
construct_md_array works for me, thanks for inputs!

2018-05-17 13:42 GMT-07:00 Andrew Gierth <andrew@tao11.riddles.org.uk>:
>>>>> "Charles" == Charles Cui <charles.cui1984@gmail.com> writes:

 Charles> I have the requirements to return a bytea array for some
 Charles> functions in pg_thrift plugin.

If you mean you want the return value to be of type bytea[], i.e. an SQL
array of bytea values, then you need to be using construct_array to
construct the result.

--
Andrew (irc:RhodiumToad)

pgsql-hackers by date:

Previous
From: Andrew Gierth
Date:
Subject: Re: Fix for FETCH FIRST syntax problems
Next
From: Andrew Gierth
Date:
Subject: Re: Fix for FETCH FIRST syntax problems