pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: jeanpierre.carayol@free.fr
Cc: 陳世泓 <adam_chen@bankpro.com.tw>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Something strang on "left join"
Date: Thu, 28 Sep 2017 19:01:04 +0200
Message-ID: <41d09a92-9934-d3e8-2eb9-cf40d0fa537b@2ndquadrant.com> (raw)
In-Reply-To: <783812923.668562497.1506592903818.JavaMail.root@zimbra48-e8.priv.proxad.net>
References: <783812923.668562497.1506592903818.JavaMail.root@zimbra48-e8.priv.proxad.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 09/28/2017 12:01 PM, jeanpierre.carayol@free.fr wrote:
> I also suspect the ID columns values for lines identified by CUST-NO.
> 
> Sorry to ask an additionnal question here. There is a useful Oracle
> function dump()
> <https://docs.oracle.com/cd/B28359_01/server.111/b28286/functions048.htm#SQLRF00635;
> to check the internal field value. Is there anything similar with
> PostgreSQL ?
> 

I don't think there's anything like that in PostgreSQL directly, but you
could use "orafce" extension [1] which provides various functions
available on Oracle, including dump().

[1] https://github.com/orafce/orafce

But you could also use 'quote_ident()' which simply quotes the value, so
any additional spaces are quite obvious.

Or even better - fix the schema and make the fields INT or BIGINT, which
will make the fields both more efficient and resilient to such issues.


regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)

Message-ID: <41d09a92-9934-d3e8-2eb9-cf40d0fa537b@2ndquadrant.com>
Permalink:  ../41d09a92-9934-d3e8-2eb9-cf40d0fa537b@2ndquadrant.com/
Also on:    postgresql.org/message-id/41d09a92-9934-d3e8-2eb9-cf40d0fa537b@2ndquadrant.com

 · 

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-bugs@postgresql.org
  Cc: tomas.vondra@2ndquadrant.com, jeanpierre.carayol@free.fr, adam_chen@bankpro.com.tw
  Subject: Re: Something strang on "left join"
  In-Reply-To: <41d09a92-9934-d3e8-2eb9-cf40d0fa537b@2ndquadrant.com>
  References: <783812923.668562497.1506592903818.JavaMail.root@zimbra48-e8.priv.proxad.net> <41d09a92-9934-d3e8-2eb9-cf40d0fa537b@2ndquadrant.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