Re: Bug: psql misquotes constraints

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Rod Taylor <pg(at)rbt(dot)ca>, PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Bug: psql misquotes constraints
Date: 2004-07-12 00:57:08
Message-ID: 200407120057.i6C0v8D21995@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


I can do that for 7.6. Is it worth it? Is it a TODO?

---------------------------------------------------------------------------

Christopher Kings-Lynne wrote:
> > As a result of the constraint output functions being shared between
> > pg_dump and psql, some of the output is mis-quoted in the display area
> > for columns including quotes. Notice it's correct in the table Column
> > list, but the constraint has the escaped versions.
>
> It's misquoted because psql DOES NOT share the fmtId function with
> pg_dump. It simply puts double quotes around it. If you can fix psql
> so that it is able to link to the fmtId function, then you can easily
> fix the problem.
>
> Chris
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-07-12 01:00:04 Re: patch for allowing multiple -t options to pg_dump
Previous Message Justin Clift 2004-07-12 00:42:25 Re: Status report