Skip site navigation (1) Skip section navigation (2)

Re: dbt2-shell script problem

From: Jonas J <autoramajj(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: dbt2-shell script problem
Date: 2010-01-14 20:51:24
Message-ID: 68962a631001141251x6a599438y70e3ea33628d7892@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackers
Thanks for your support,

The problem was that Ubuntu links /bin/sh to /bin/dash and not /bin/bash,
that makes some scripts crashing. I done the correct linking and everything
works fine now.
Also thanks for Mark Wong support,

Jonas,



2010/1/11 Robert Haas <robertmhaas(at)gmail(dot)com>

> On Mon, Jan 11, 2010 at 4:18 PM, Jonas J <autoramajj(at)gmail(dot)com> wrote:
> > I get the dbt2 project from the git tree. And i'm trying to make it work
> > with postgres. The problem is in one of the dbt2 shell scripts. Since I
> dont
> > understand of Shell Script Programing, here is my problem: (I will post
> the
> > script on the end)
>
> Well this isn't really a "help" list... especially not for
> shell-script programming... especially for shell-scripts that aren't
> even part of PostgreSQL.
>
> But having said that... I think you must be running a wonky version of sh.
>
> $ DBNAME=rhaas ./broken-script -d /tmp/fodao
> Loading customer table...
> COPY customer FROM '/tmp/fodao/customer.data' WITH NULL AS '';
> ERROR:  relation "customer" does not exist
>
> ...Robert
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers
>

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2010-01-14 21:02:50
Subject: Re: Streaming replication, retrying from archive
Previous:From: Tom LaneDate: 2010-01-14 20:42:37
Subject: Re: EXPLAIN, utility statement parameters, and recent plpgsql changes

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group