Re: [HACKERS] Taking the "varattno" in "args" (where part of a query)

2013-05-10 Thread carla celiberti
I looked at the plan with the explaination of the query (see pag 9 of http://www.postgresql.org/files/developer/internalpics.pdf for an example) and I found a way to take varattno from a Query structure using FromExpr jointree and casting in the right way the list and node to arrive at the Var s

[HACKERS] Taking the "varattno" in "args" (where part of a query)

2013-05-08 Thread carla celiberti
Hi everyone, I'm working on a project and one of my task is trying to take the "where" part of the queries.I'm programming inside the function "exec_simple_query" in "postgres.c".I searched inside the source code and how I've understood I need to take the "varattno" in "args" in "qpqual", is it