From: Rodrigo De León <rdeleonp@gmail.com>
To: Kostis Mentzelos <mentzelos@gmx.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: convert char to varchar
Date: Thu, 18 Oct 2007 09:06:26 -0500
Message-ID: <a55915760710180706i3023f62cub834087e1669f50@mail.gmail.com> (raw)
In-Reply-To: <4716EDD7.7010104@gmx.net>
References: <4716EDD7.7010104@gmx.net>
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);
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-admin@postgresql.org
Cc: rdeleonp@gmail.com, mentzelos@gmx.net
Subject: Re: convert char to varchar
In-Reply-To: <a55915760710180706i3023f62cub834087e1669f50@mail.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 DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox