pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrus <kobruleht2@hot.ee>
To: Olivier Gautherot <ogautherot@gautherot.net>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Using compression on TCP transfer
Date: Sun, 5 Apr 2020 18:57:36 +0300
Message-ID: <F8BD8234DBE94DB38CBF46348B111649@dell2> (raw)
In-Reply-To: <CAJ7S9TWSG3M0o2tGucxjB_adHeRgLbpNg-y+y=THfW2U2nHf8w@mail.gmail.com>
References: <45AE45823FB844ED80186DE14DCC5B14@dell2>
	<b50c974b0d423dd7e6c500b59a31895d4278efa9.camel@cybertec.at>
	<5DB1E9D2ADDB4BA0ABDF602235234BCC@dell2>
	<1e7536de1cb9e1097d1c8faf07a08bf66d8eeead.camel@cybertec.at>
	<7C033DCE8AD84649B95C5B367D6063B3@dell2>
	<CAJ7S9TWSG3M0o2tGucxjB_adHeRgLbpNg-y+y=THfW2U2nHf8w@mail.gmail.com>

Hi!
Thank you.

>If you decide that it's without, you could apply a TRIM in a trigger on each INSERT and UPDATE. Then, you could replace the table by a view of the same name >and implement the TRIM on SELECT there. This way, you don't have to touch anything in the application.

How you provide sample code how to create view or othe method test so that my select statement returns data.

Currently select in code

create table test ( test varchar );
insert into test values ('test');
select * from test where test ='test '; -- note trailing space


does not return data.

Andrus.

view thread (10+ messages)

Message-ID: <F8BD8234DBE94DB38CBF46348B111649@dell2>
Permalink:  ../F8BD8234DBE94DB38CBF46348B111649@dell2/
Also on:    postgresql.org/message-id/F8BD8234DBE94DB38CBF46348B111649@dell2

 · 

reply

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: kobruleht2@hot.ee, ogautherot@gautherot.net, laurenz.albe@cybertec.at
  Subject: Re: Using compression on TCP transfer
  In-Reply-To: <F8BD8234DBE94DB38CBF46348B111649@dell2>
  References: <45AE45823FB844ED80186DE14DCC5B14@dell2> <b50c974b0d423dd7e6c500b59a31895d4278efa9.camel@cybertec.at> <5DB1E9D2ADDB4BA0ABDF602235234BCC@dell2> <1e7536de1cb9e1097d1c8faf07a08bf66d8eeead.camel@cybertec.at> <7C033DCE8AD84649B95C5B367D6063B3@dell2> <CAJ7S9TWSG3M0o2tGucxjB_adHeRgLbpNg-y+y=THfW2U2nHf8w@mail.gmail.com> <F8BD8234DBE94DB38CBF46348B111649@dell2>

* 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