Re: pg_wrapper error

From: José Pedro Santos <zpsantos1(at)hotmail(dot)com>
To: <adrian(dot)klaver(at)gmail(dot)com>, Postgres Ajuda <pgsql-general(at)postgresql(dot)org>
Subject: Re: pg_wrapper error
Date: 2012-10-26 14:40:01
Message-ID: BLU162-W49CDFF71DBB1E26DA3EC18E07E0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


HI,

I only made that to enable the shp2pqsql but don't work well... (I read in one website). The problem if I don't had made that I have one error saying that I don't have that package (I' m using Postgis 2.0)...

how can undo the operation?

Thanks!
JSantos

> Date: Fri, 26 Oct 2012 06:56:46 -0700
> From: adrian(dot)klaver(at)gmail(dot)com
> To: zpsantos1(at)hotmail(dot)com
> CC: pgsql-general(at)postgresql(dot)org
> Subject: Re: [GENERAL] pg_wrapper error
>
> On 10/26/2012 06:33 AM, José Pedro Santos wrote:
> > Postgres 9.1 in Ubuntu Distribution (12.04 LTS).
> >
> > When I try to use the shp2pgsql after the pg_wrapper error said that I
> > don't have that function, so I enable that function with this command:
> >
> > sudo ln -sf /usr/share/postgresql-common/pg_wrapper /usr/local/bin/shp2pgsql
>
> In the above you just made shp2pgsql = pg_wrapper. In your case you
> should really not have to worry about pg_wrapper. Undo the symlink.
>
> For more info on what pg_wrapper really is:
> http://manpages.ubuntu.com/manpages/lucid/man1/pg_wrapper.1.html
> >
>
> >
> > then I try to import again with the same expression that I used before:
> >
> > shp2pgsql /home/user/Downloads/Africa_Boundaries/africa.shp teste2.africa | psql -d MyDatabase
> >
> > And I have the pg_wrapper error (Error: pg_wrapper: invalid command name)
>
> You are getting the above because you made shp2pgsl = pg_wrapper.
>
> >
> >
> > Many thanks
> > José Santos
> >
>
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)gmail(dot)com
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Lee Hachadoorian 2012-10-26 14:48:54 Re: pg_wrapper error
Previous Message Adrian Klaver 2012-10-26 13:56:46 Re: pg_wrapper error