Re: proposal or just idea for psql - show first N rows from relation backslash statement

From: Merlin Moncure <mmoncure(at)gmail(dot)com>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, fabriziomello(at)gmail(dot)com, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: proposal or just idea for psql - show first N rows from relation backslash statement
Date: 2013-02-14 17:45:43
Message-ID: CAHyXU0xp_9BhwjkW0cYLToMAr9_4wB=C42YOsGrpH2ag7gayxw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Feb 14, 2013 at 10:03 AM, Stephen Frost <sfrost(at)snowman(dot)net> wrote:
> * Merlin Moncure (mmoncure(at)gmail(dot)com) wrote:
>> That doesn't work. functions don't allow arbitrary returned columns.
>> CALL should support this.
>
> That's yet another discussion, though for a preview, you could just
> return a single text column from the function in which you do whatever
> formatting you want.

sure -- I use this technique often although lately i've moved from
text to hstore/json.

merlin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2013-02-14 18:02:13 Call for Google Summer of Code mentors, admins
Previous Message Merlin Moncure 2013-02-14 17:44:33 Re: proposal or just idea for psql - show first N rows from relation backslash statement