From: Vee <sefer@hotmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5273: Unexpected function behavior/failure
Date: Tue, 12 Jan 2010 22:30:32 GMT
Message-ID: <201001122230.o0CMUWFS000320@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 5273
Logged by: Vee
Email address: sefer@hotmail.com
PostgreSQL version: 8.4.2
Operating system: Linux
Description: Unexpected function behavior/failure
Details:
Hi,
I have an odd problem using certain regular expressions (as opposed to any
other function) with PostgreSql 8.4.2, I was hoping you could enlighten me
as to what am I doing wrong.
-- Create the table and populate it.
create table test ( data text );
insert into test
values ('hello'), ('world'), ('bridge');
-- Test query.
select data, upper(data)
from test;
> hello HELLO
> world WORLD
> bridge BRIDGE
-- The problem query
select data, regexp_matches(data, '(h..l)')
from test;
> hello {hell}
Since I have no "where" clause, I would expect to see all the rows in the
result of the second case, with possibly a NULL value for the non-matched
rows.
But I would not expect a "select" clause to effectively filter out results
for me.
I'd appreciate your input on the matter.
Thanks,
Vee.
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 using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: sefer@hotmail.com
Subject: Re: BUG #5273: Unexpected function behavior/failure
In-Reply-To: <201001122230.o0CMUWFS000320@wwwmaster.postgresql.org>
* 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