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

Поиск
Список
Период
Сортировка
От carla celiberti
Тема Taking the "varattno" in "args" (where part of a query)
Дата
Msg-id DUB116-W4669ED76372C31C11187CC8BBB0@phx.gbl
обсуждение исходный текст
Ответы Re: Taking the "varattno" in "args" (where part of a query)
Список pgsql-hackers
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 right?
If yes, how do I have to save it in order to have it in that function?
If no, what is the easiest way to take it?

Example: 
For a query: select firstname from friend where age=33
The attributes of the table friends are: firstname, lastname, city, state, age
I need to have the number 5 because "age" is the fifth attribute of "friend".

Thanks

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: RETURNING syntax for COPY
Следующее
От: Atri Sharma
Дата:
Сообщение: Re: Graph datatype addition