Using function like where clause - Mailing list pgsql-general

From Ranieri Mazili
Subject Using function like where clause
Date
Msg-id 46B77A1D.4050908@wgsystems.com.br
Whole thread Raw
Responses Re: Using function like where clause  (Kev <kevinjamesfield@gmail.com>)
Re: [SQL] Using function like where clause  (hubert depesz lubaczewski <depesz@depesz.com>)
List pgsql-general
Hello,

I have 2 questions.
1) Can I use a function that will return a string in a where clause like
bellow?

select *
from table
where my_function_making_where()
          and another_field = 'another_think'

2) Can I use a function that will return a string to return the list of
columns that I want to show like below?

select my_function_making_list_of_columns()
from table
where field_test = 'mydatum'

Thanks

pgsql-general by date:

Previous
From: Sergei Shelukhin
Date:
Subject: truncate transaction log
Next
From: Sergei Shelukhin
Date:
Subject: finding out vacuum completion %, and vacuum VS vacuum full