Thread: PostgreSQL 9.5.1 -> PG_REWIND NOT FOUND

PostgreSQL 9.5.1 -> PG_REWIND NOT FOUND

From
sgringer
Date:
Hello,

I have installed PostgreSQL 9.5.1 on x86_64-pc-linux-gnu, compiled by gcc
(Ubuntu 4.8.2-19ubuntu1) 4.8.2, 64-bit on Ubuntu 14.04.04 from
http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.5

Now after replication failure I want use new pg_rewind but it seems that
pg_rewind is not installed.
How can I activate/install pg_rewind??

Thanks!



--
View this message in context: http://postgresql.nabble.com/PostgreSQL-9-5-1-PG-REWIND-NOT-FOUND-tp5897145.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: PostgreSQL 9.5.1 -> PG_REWIND NOT FOUND

From
Adrian Klaver
Date:
On 04/06/2016 04:02 AM, sgringer wrote:
> Hello,
>
> I have installed PostgreSQL 9.5.1 on x86_64-pc-linux-gnu, compiled by gcc
> (Ubuntu 4.8.2-19ubuntu1) 4.8.2, 64-bit on Ubuntu 14.04.04 from
> http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main 9.5
>
> Now after replication failure I want use new pg_rewind but it seems that
> pg_rewind is not installed.

How did you determine it was not installed?

What packages did you install from the repo?


> How can I activate/install pg_rewind??
>
> Thanks!
>
>
>
> --
> View this message in context: http://postgresql.nabble.com/PostgreSQL-9-5-1-PG-REWIND-NOT-FOUND-tp5897145.html
> Sent from the PostgreSQL - general mailing list archive at Nabble.com.
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


Re: PostgreSQL 9.5.1 -> PG_REWIND NOT FOUND

From
sgringer
Date:
I have found it in this folder /usr/lib/postgresql/9.5/bin
the command  "pg_rewind" don't work globally like othe pg



--
View this message in context: http://postgresql.nabble.com/PostgreSQL-9-5-1-PG-REWIND-NOT-FOUND-tp5897145p5897332.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


Re: PostgreSQL 9.5.1 -> PG_REWIND NOT FOUND

From
John R Pierce
Date:
On 4/6/2016 11:31 PM, sgringer wrote:
> I have found it in this folder /usr/lib/postgresql/9.5/bin
> the command  "pg_rewind" don't work globally like othe pg


$ export PATH=/usr/lib/postgresql/9.5/bin:$PATH
$ pg_rewind --help




--
john r pierce, recycling bits in santa cruz



Re: PostgreSQL 9.5.1 -> PG_REWIND NOT FOUND

From
Adrian Klaver
Date:
On 04/06/2016 11:31 PM, sgringer wrote:
> I have found it in this folder /usr/lib/postgresql/9.5/bin
> the command  "pg_rewind" don't work globally like othe pg

That is where the other Postgres commands are located also, correct?

So can you access pg_dump, for example?


--
Adrian Klaver
adrian.klaver@aklaver.com