Re: Bash profile

Поиск
Список
Период
Сортировка
Искать
От
Adrian Klaver
Тема
Re: Bash profile
Дата
Msg-id
bd623950-d717-4e6b-b177-bd94ca327549@aklaver.com
Ответ на
Re: Bash profile (Yongye Serkfem)
Список
Дерево обсуждения
Bash profile Yongye Serkfem <yserkfem@gmail.com>
Re: Bash profile "David G. Johnston" <david.g.johnston@gmail.com>
Re: Bash profile Ron Johnson <ronljohnsonjr@gmail.com>
Re: Bash profile Yongye Serkfem <yserkfem@gmail.com>
Re: Bash profile Adrian Klaver <adrian.klaver@aklaver.com>
Re: Bash profile Ron Johnson <ronljohnsonjr@gmail.com>
On 2/15/25 11:17, Yongye Serkfem wrote:
> I am upgrading from version 12.7 to 15.7

You are going to have to explain what, in your situation, BASH has to do 
with the upgrade process. Generally migrations depend on Postgres 
programs and are not shell specific.

> 
> 
> On Sat, Feb 15, 2025, 2:15 PM Ron Johnson  > wrote:
> 
>     On Sat, Feb 15, 2025 at 2:01 PM Yongye Serkfem      > wrote:
> 
>         Hi Everyone!
>         I would appreciate any assistance with configuring the bash
>         profile to run two different postgresql versions. Specifically
>         V12.7 and 15.7
> 
> 
>     Create a bash function that exports PGDATA to the relevant
>     directory, based on the parameter you pass.
>     Add as much error checking (to ensure that the parameter you passed
>     actually points to a real data dir and that the postmaster is
>     running.  How you do that depends on whether it's Debian-based,
>     RH-based or something else.
> 
>     We, for example, have standardized on data directories in the format:
>     /Database//data
> 
>     Thus, something as simple as this would work for us:
>     pgswitch() { export PGDATA=/Database/${1}/data ; }
> 
>     -- 
>     Death to , and butter sauce.
>     Don't boil me, I'm still alive.
>      lobster!
> 

-- 
Adrian Klaver
adrian.klaver@aklaver.com



В списке pgsql-general по дате отправления
От: Ron Johnson
Дата:
Сообщение: Re: Bash profile
От: sud
Дата:
Сообщение: Question on Alerts
FAQ