ow <oneway_111@yahoo.com> writes:
> --- Achilleus Mantzios <achill@matrix.gatewaynet.com> wrote:
>> dynacom=# \c bab
>> You are now connected to database bab.
> I'm actually looking for a way to set database from a *script*, not psql
> console, if this is possible (similar to "SET search_path TO whatever;").
If the script is being fed to psql, it can use \c ...
regards, tom lane