C++ -> C : Module for converting the WHERE clause to the canonical form with PostgreSQL - Mailing list pgsql-hackers

From St Valentine
Subject C++ -> C : Module for converting the WHERE clause to the canonical form with PostgreSQL
Date
Msg-id E1ExMYD-000OgV-Ch@giper.ukr.net
Whole thread Raw
Responses Re: C++ -> C : Module for converting the WHERE clause to the canonical form with PostgreSQL
List pgsql-hackers
Help me, please,
i have a module, which converts the WHERE clause to a canonical form, i.e. converting a logical clause to a
conjuntionalor dicjuntional clauses. For example:
 

(ves > 100 or bbbb = 10) AND (bbbb = aaa + 1 OR (aaaa AND caa))

will be converted to dicjuntional form:

ves>100 AND bbbb=10 AND bbbb=aaa+1 OR вес>100 AND bbbb=10 AND aaaa OR ves>100
AND bbbb=10 AND caa

That module is writen in the C++ langguage, how can i connect it to the PostgreSQL sources? In our project we must to
comparequeries. Beacause of the same query can be writen in different forms, so to compare queries we must to convert
themto the same form of presentation.
 

--
stvalentine
      


pgsql-hackers by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: GRANT/REVOKE column-level privileges
Next
From: "Magnus Hagander"
Date:
Subject: PostgreSQL win32 & NT4