Exec a text variable as select - Mailing list pgsql-sql

From Ranieri Mazili
Subject Exec a text variable as select
Date
Msg-id 46768538.9070909@terra.com.br
Whole thread Raw
Responses Re: [GENERAL] Exec a text variable as select  ("A. Kretschmer" <andreas.kretschmer@schollglas.com>)
List pgsql-sql
Hello,

I'm creating a function that will create a select statement into a
while, this select will be stored into a text variable, after while ends
I need to execute this query stored into variable, on SQLSERVER I can do:
EXEC(text_variable)
How can I do this on Postgres?

I appreciate any help
Thanks

pgsql-sql by date:

Previous
From: "Sabin Coanda"
Date:
Subject: Re: array_to_string
Next
From: "A. Kretschmer"
Date:
Subject: Re: [GENERAL] Exec a text variable as select