Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dxcCI-0000kC-LI for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Sep 2017 17:02:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dxcCH-00068U-QX for pgsql-bugs@arkaria.postgresql.org; Thu, 28 Sep 2017 17:02:01 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dxcBa-0004sy-7P for pgsql-bugs@postgresql.org; Thu, 28 Sep 2017 17:01:18 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dxcBS-0004CK-EY for pgsql-bugs@postgresql.org; Thu, 28 Sep 2017 17:01:16 +0000 Received: by mail-wm0-x232.google.com with SMTP id u138so3533714wmu.4 for ; Thu, 28 Sep 2017 10:01:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fm2wPVnQKMPbxhlhXkL0Y/potBJxZDHevwEqTmKBeEA=; b=aUBUqbGDGoVjrPJWArNeJ0KtqSx+xXNeTl/d47JD7UNgdMlLBoRDVcKgwvo3ojltUM D66vbHgPPe8rjgAgWrpKQZfGzWWX5CeRYpKzeNhIMCKy/JvtDghg4Vvd5vciYYRVfsQc 5b3lv07/s4Slel/WYDfjgfgngovWu2YjariQYK5N3v4R4IDk6HvpHQpPn/u7RWPxmZqh 1UPFwawT2sf+VFbXdlcviD5O4I/wjw65wg1YAc7UIcLiSqMHnJhopNnPOAvGEqOAyxDK B5iijf9Qg9Dc/HHOdkGzGq7HnjhpyjqZ/lsSDgz/muQwMeGJoXrW9gfKe+QhgTU4m5wS u2Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fm2wPVnQKMPbxhlhXkL0Y/potBJxZDHevwEqTmKBeEA=; b=T8pHipDaI9sLDixJPSPEcQ5OkbQw+KI4XlMHTijCBirHqNIK45ol2EcqhAUczN4kzp kEs9Qo/f3y/KuZDNyHsBZblduTXEOFtdj+SNPwq7EhYZMzHWuXn0967SVhUiixRQ4HkQ zVDUB7kjoDZEd09HjB4XBhRsSwh3mzdxilwiY00fQtwGi+XNxhxQ6eDdr6HGV3scYw/I myRA0FxIg2PzvxXXuJr+KJGepfu4zKY5sWw/wtvBnPiYhEP+lT7ZRFYFUjZ3XZI3dfwS 50rJj6lWjoubtIcesv7uZMCtzypl+bFYzNC9cAf04jdSfQ9jpfuH8pqJfq5cYS12wJEd XFqw== X-Gm-Message-State: AHPjjUgqNMkvHbpXRGBK2NtVa1L/K6hUFdKUslWoOwXR6LYr7/+8zOG+ PjjuDSPQcCk8+Uci1hvD6yjOMhia6zXweWHWGlC9LRRfA4bgkma0/9QzVOf4b9lSxBJN75ai3/w J7YNfW9T7FYmEDAodpXN+tldSZc94sgjXDW3ywcPtyh3EdcY0Z4CiXVpacWXwLO05FGpeafH+Pq MiwWRj X-Google-Smtp-Source: AOwi7QBrZImbetOl7H5gOOwvY+MAJ//07CeHUac2UhSW0lfA7kNYlJhl6HDn1bqH0Ze0ApiebUTLqg== X-Received: by 10.80.146.35 with SMTP id i32mr6806652eda.10.1506618068234; Thu, 28 Sep 2017 10:01:08 -0700 (PDT) Received: from [10.137.2.19] (ip-78-102-97-226.net.upcbroadband.cz. [78.102.97.226]) by smtp.gmail.com with ESMTPSA id v21sm1703158edb.72.2017.09.28.10.01.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Sep 2017 10:01:07 -0700 (PDT) Subject: Re: Something strang on "left join" To: jeanpierre.carayol@free.fr Cc: =?UTF-8?B?6Zmz5LiW5rOT?= , pgsql-bugs@postgresql.org References: <783812923.668562497.1506592903818.JavaMail.root@zimbra48-e8.priv.proxad.net> From: Tomas Vondra Message-ID: <41d09a92-9934-d3e8-2eb9-cf40d0fa537b@2ndquadrant.com> Date: Thu, 28 Sep 2017 19:01:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <783812923.668562497.1506592903818.JavaMail.root@zimbra48-e8.priv.proxad.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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() > > 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