Re: loading a function from a file

From: Alban Hertroys <haramrae(at)gmail(dot)com>
To: and <andreaesposito77(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: loading a function from a file
Date: 2012-03-26 15:31:54
Message-ID: CAF-3MvMjt+P-5RTQhaXCunTSo6+mQtiErauXiRD=uy1m9=st_A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 26 March 2012 11:32, and <andreaesposito77(at)gmail(dot)com> wrote:
> I have read it on logging
> psql -h host database <  create_some_func.sql
> but then i am forced to redo the login.Is there another way to do it?

If you're working on the database server, then you can skip the "-h
host" bit and use a socket.

That does require that you didn't disallow those in pg_hba and that
the OS supports socket files (Windows doesn't, for example).

--
If you can't see the forest for the trees,
Cut the trees and you'll see there is no forest.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thom Brown 2012-03-26 15:41:04 Re: language name case sensitivity, also known as plpgsql <> 'PLpgSQL'
Previous Message Gregg Jaskiewicz 2012-03-26 15:30:19 language name case sensitivity, also known as plpgsql <> 'PLpgSQL'