From: Susan Hurst <susan.hurst@brookhurstdata.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Help : Removal of leading spaces in all the columns of a table
Date: Wed, 12 Feb 2020 08:09:28 -0600
Message-ID: <63f2ef022e503f62aaefb798e4bd6a7e@mail.brookhurstdata.net> (raw)
In-Reply-To: <20200212124246.3340.qmail@f4mail-235-121.rediffmail.com>
References: <20200212124246.3340.qmail@f4mail-235-121.rediffmail.com>
I once wrote a trigger function to do just what you asked, however, it
was a huge drain on performance so I didn't use it for long, so I
dropped the trigger. Hopefully, someone has a more practical approach. I
would be interested in this also.
Sue
---
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Susan E Hurst
Principal Consultant
Brookhurst Data LLC
Email: susan.hurst@brookhurstdata.com
Mobile: 314-486-3261
On 2020-02-12 06:42, srikkanth wrote:
> Hi Team,
>
> How can i write the syntax to remove the leading spaces on a table for all the columns.
>
> Also, want to know how to do the all words of all the columns in capital along with removing of leadingexcessivetrailing spaces at a time.
>
> Can you please help me out, let me know in case of any inputs.
>
> Thanks,
>
> Srikanth B
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: susan.hurst@brookhurstdata.com
Subject: Re: Help : Removal of leading spaces in all the columns of a table
In-Reply-To: <63f2ef022e503f62aaefb798e4bd6a7e@mail.brookhurstdata.net>
References: <20200212124246.3340.qmail@f4mail-235-121.rediffmail.com> <63f2ef022e503f62aaefb798e4bd6a7e@mail.brookhurstdata.net>
* 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