Using result from current_database() into another command? - Mailing list pgsql-general

From Francisco Reyes
Subject Using result from current_database() into another command?
Date
Msg-id cone.1185292296.765747.18024.5001@35st.simplicato.com
Whole thread Raw
Responses Re: Using result from current_database() into another command?
List pgsql-general
select current_database();
 current_database
------------------
 test2

Is there a way to use that result from current_database() into something
like:
alter database CURRENT_DATABASE() set search_path=myschema,public;

I have some generic scripts that I am preparing for several databases. Most
commands/loads don't care about the database, since they just use the one I
am connected to. Alter database however needs the database specified.

pgsql-general by date:

Previous
From: Steve Wampler
Date:
Subject: Re: CentOS 4 RPMs for 8.2.4?
Next
From: Raymond O'Donnell
Date:
Subject: Re: Connection error