agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Rob Sargent <robjsargent@gmail.com>
To: pgsql-sql@postgresql.org
Subject: Re: Query Advice
Date: Thu, 30 Mar 2017 12:17:20 -0600
Message-ID: <931ab9ce-a6e0-1722-ef90-22b4c8ea94a0@gmail.com> (raw)
In-Reply-To: <CAKFQuwbto5hNVhPqKL3acJMbdTHLHb3-5T1UbBsBf0YTcOGY5w@mail.gmail.com>
References: <alpine.DEB.2.20.1703301350250.17355@websrv.gogca.com>
<CAKFQuwbto5hNVhPqKL3acJMbdTHLHb3-5T1UbBsBf0YTcOGY5w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
On 03/30/2017 12:13 PM, David G. Johnston wrote:
> On Thu, Mar 30, 2017 at 11:03 AM, Gary Chambers <gwchamb@gwcmail.com
> <mailto:gwchamb@gwcmail.com>>wrote:
>
> Is there a better way to get the company information along with
> all of the
> addresses in a single query? This works, but it requires the
> additional
> step of splitting the addresses by the the delimiter at the
> application
> layer.
>
>
> To comment as to "better" without any knowledge of the "application
> layer" doesn't make sense.
>
> I suggest you provide an example of what you'd like the output to look
> like independent of any query concerns.
>
> David J.
>
If we assume the client layer is splitting by the pipe, why not just
send the set of addresses and the client simply iterates over that, no
hokey parsing involved.
view thread (7+ messages) latest in thread
Message-ID: <931ab9ce-a6e0-1722-ef90-22b4c8ea94a0@gmail.com>
Permalink: ../931ab9ce-a6e0-1722-ef90-22b4c8ea94a0@gmail.com/
Also on: postgresql.org/message-id/931ab9ce-a6e0-1722-ef90-22b4c8ea94a0@gmail.com
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: robjsargent@gmail.com
Subject: Re: Query Advice
In-Reply-To: <931ab9ce-a6e0-1722-ef90-22b4c8ea94a0@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox