pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Issue when using ltree
2+ messages / 1 participants
[nested] [flat]

* Issue when using ltree
@ 2015-08-26 06:42 Robert Mu <dbx_c@hotmail.com>
  2015-08-26 06:50 ` Re: Issue when using ltree Robert Mu <dbx_c@hotmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Robert Mu @ 2015-08-26 06:42 UTC (permalink / raw)
  To: pgsql-bugs

In the regress test of ltree module .
 
--this query return false
SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*.!c.*.e';
 ?column? 
----------
 f
(1 row)
 
--this query return true
SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*{1}.!c.*.e';
 ?column? 
----------
 t
(1 row)
 
I think if the second query return true, the first query should return true too (Obviously the "*" is contain the "*{1}"). 
 
Am i right?
 		 	   		  

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Issue when using ltree
  2015-08-26 06:42 Issue when using ltree Robert Mu <dbx_c@hotmail.com>
@ 2015-08-26 06:50 ` Robert Mu <dbx_c@hotmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Mu @ 2015-08-26 06:50 UTC (permalink / raw)
  To: pgsql-bugs

I'm using the latest source code (PostgreSQL 9.6devel)
 
From: dbx_c@hotmail.com
To: pgsql-bugs@postgresql.org
Subject: [BUGS] Issue when using ltree
Date: Wed, 26 Aug 2015 14:42:35 +0800




In the regress test of ltree module .
 
--this query return false
SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*.!c.*.e';
 ?column? 
----------
 f
(1 row)
 
--this query return true
SELECT 'a.b.c.d.e'::ltree ~ '*{1}.!b.*{1}.!c.*.e';
 ?column? 
----------
 t
(1 row)
 
I think if the second query return true, the first query should return true too (Obviously the "*" is contain the "*{1}"). 
 
Am i right?
 		 	   		   		 	   		  

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2015-08-26 06:50 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-08-26 06:42 Issue when using ltree Robert Mu <dbx_c@hotmail.com>
2015-08-26 06:50 ` Robert Mu <dbx_c@hotmail.com>

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