Re: Make & Install contrib/tablefunc Problems

From: Sam Mason <sam(at)samason(dot)me(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Make & Install contrib/tablefunc Problems
Date: 2010-01-25 16:16:43
Message-ID: 20100125161643.GX5407@samason.me.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 25, 2010 at 04:05:57PM +0100, Stefan Schwarzer wrote:
> Guess I'd need to do this as/with postgres user/role.

Yup, or at least somebody with superuser rights. Try "\du" in psql.

> But really not
> sure how this goes. Thought it should be something like this:
>
> sudo su - postgres -c '/usr/local/pgsql/bin/pgsql' < tablefunc.sql
>
> But that's no correct.

Looks about right, what do you get back?

The following does basically the same thing, but I find it a bit easier
to follow:

sudo -u postgres /usr/local/pgsql/bin/pgsql < tablefunc.sql

--
Sam http://samason.me.uk/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2010-01-25 16:31:28 Re: Log full of: statement_timeout out of the valid range.
Previous Message Dino Vliet 2010-01-25 16:15:41 general questions postgresql performance config