Re: [GSoC] Question about returning bytea array

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Charles Cui <charles(dot)cui1984(at)gmail(dot)com>
Cc: Aleksander Alekseev <a(dot)alekseev(at)postgrespro(dot)ru>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>, Anastasia Lubennikova <a(dot)lubennikova(at)postgrespro(dot)ru>, Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
Subject: Re: [GSoC] Question about returning bytea array
Date: 2018-05-17 20:42:59
Message-ID: 87muwy3thu.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>>>> "Charles" == Charles Cui <charles(dot)cui1984(at)gmail(dot)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)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2018-05-17 20:54:34 Re: Odd procedure resolution
Previous Message Peter Eisentraut 2018-05-17 20:10:59 Re: Odd procedure resolution