From: | andrzej barszcz <abusi(at)it-net(dot)pl> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | xml in ruleutils |
Date: | 2009-07-11 14:37:03 |
Message-ID: | 1247323023.16438.35.camel@ab-desktop |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi,
Well, best to write this way:
Goal : query splitted to base elements
Result : xml response from server
Client : select pg_reparse_query(<query>);
Target: 8.4 version
How : modification of ruleutiles.c
Not done : UNION etc.
Not done : as builtin function, I don't know how to do it )))
Tested : partly
examples :
query : ( not meaningful by the way )
pzty - View on table X
"wartość zakupu" - from View of table Y
"nazwa dostawcy" - from Table Z
select public.pg_reparse_query($$with xxx as (select * from pzty) select
ctid,upper("nazwa dostawcy") from xxx where typ_dok='PZ' or typ_dok='WZ'
and "nazwa dostawcy" = 'A' and "wartość zakupu" = 100 order by "nazwa
dostawcy" desc $$);
second example:
select public.pg_reparse_query($$select ctid,upper("nazwa dostawcy")
from pzty where typ_dok='PZ' or typ_dok='WZ' and "nazwa dostawcy" = 'A'
and "wartość zakupu" = 100 order by "nazwa dostawcy" desc $$);
Does it make sense ????
If you are interested in this solution send me email please.
best regards
Andrzej Barszcz
Attachment | Content-Type | Size |
---|---|---|
query.xml | application/xml | 2.0 KB |
query_without_with.xml | application/xml | 1.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2009-07-11 15:19:18 | Re: *_collapse_limit, geqo_threshold |
Previous Message | Theo Schlossnagle | 2009-07-11 12:42:49 | Re: concurrent index builds unneeded lock? |