http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54214
--- Comment #19 from Denis Kolesnik <lirex.software at gmail dot com> 2012-08-19 18:15:49 UTC --- (In reply to comment #18) > Gcc cannot alter results of an SQL query, it's a bug in your program. This is > the wrong place to get help debugging your code. You are right: I consider now, that it is a PostgreSQL SQL bug. limit 1 offset ... order byt str_last_name filters data wrong...