Re: convert char to varchar - Mailing list pgsql-admin

From Rodrigo De León
Subject Re: convert char to varchar
Date
Msg-id a55915760710180706i3023f62cub834087e1669f50@mail.gmail.com
Whole thread Raw
In response to convert char to varchar  (Kostis Mentzelos <mentzelos@gmx.net>)
List pgsql-admin
On 10/18/07, Kostis Mentzelos <mentzelos@gmx.net> wrote:
> Is there any other way to clear trailing spaces when I restore the table?

After you restore, you can do:

UPDATE V1
SET
  NAME = TRIM(TRAILING ' ' FROM NAME)
, DATE = TRIM(TRAILING ' ' FROM DATE);

pgsql-admin by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: Drop Not Null
Next
From: "Scott Marlowe"
Date:
Subject: Re: Is my database now too big?