pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_ctl cannot find postgresql.conf
3+ messages / 3 participants
[nested] [flat]

* pg_ctl cannot find postgresql.conf
@ 2022-07-13 09:45 Дмитрий Карасёв <karasev.dmitrii94@mail.ru>
  2022-07-13 12:28 ` Re: pg_ctl cannot find postgresql.conf David G. Johnston <david.g.johnston@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Дмитрий Карасёв @ 2022-07-13 09:45 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org


pg_ctl (PostgreSQL) 14.4
PGDATA=/mnt/disk/base/postgresql/14/main
ERROR:
pg_ctl start
ожидание запуска сервера....postgres не может открыть файл конфигурации сервера "/mnt/disk/base/postgresql/14/main/postgresql.conf": No such file or directory
but postgresql.conf located in  /etc/postgresql/14/main/postgresql.conf
 
С уважением,
Дмитрий Карасёв
karasev.dmitrii94@mail.ru

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pg_ctl cannot find postgresql.conf
  2022-07-13 09:45 pg_ctl cannot find postgresql.conf Дмитрий Карасёв <karasev.dmitrii94@mail.ru>
@ 2022-07-13 12:28 ` David G. Johnston <david.g.johnston@gmail.com>
  2022-07-13 13:08   ` Re: pg_ctl cannot find postgresql.conf Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: David G. Johnston @ 2022-07-13 12:28 UTC (permalink / raw)
  To: Дмитрий Карасёв <karasev.dmitrii94@mail.ru>; +Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>

On Wednesday, July 13, 2022, Дмитрий Карасёв <karasev.dmitrii94@mail.ru>
wrote:

> pg_ctl (PostgreSQL) 14.4
> PGDATA=/mnt/disk/base/postgresql/14/main
> ERROR:
> pg_ctl start
> ожидание запуска сервера....postgres не может открыть файл конфигурации
> сервера "/mnt/disk/base/postgresql/14/main/postgresql.conf": No such file
> or directory
> but postgresql.conf located in  /etc/postgresql/14/main/postgresql.conf
>
>
>
This isn’t a bug.  Use the command line options or environment variables to
tell pg_ctl where to find the configuration file in the non-default
location.

David J.


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pg_ctl cannot find postgresql.conf
  2022-07-13 09:45 pg_ctl cannot find postgresql.conf Дмитрий Карасёв <karasev.dmitrii94@mail.ru>
  2022-07-13 12:28 ` Re: pg_ctl cannot find postgresql.conf David G. Johnston <david.g.johnston@gmail.com>
@ 2022-07-13 13:08   ` Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Juan José Santamaría Flecha @ 2022-07-13 13:08 UTC (permalink / raw)
  To: David G. Johnston <david.g.johnston@gmail.com>; +Cc: Дмитрий Карасёв <karasev.dmitrii94@mail.ru>; pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>

On Wed, Jul 13, 2022 at 2:29 PM David G. Johnston <
david.g.johnston@gmail.com> wrote:

> On Wednesday, July 13, 2022, Дмитрий Карасёв <karasev.dmitrii94@mail.ru>
> wrote:
>
>> pg_ctl (PostgreSQL) 14.4
>> PGDATA=/mnt/disk/base/postgresql/14/main
>> ERROR:
>> pg_ctl start
>> ожидание запуска сервера....postgres не может открыть файл конфигурации
>> сервера "/mnt/disk/base/postgresql/14/main/postgresql.conf": No such file
>> or directory
>> but postgresql.conf located in  /etc/postgresql/14/main/postgresql.conf
>>
>>
>
> This isn’t a bug.  Use the command line options or environment variables
> to tell pg_ctl where to find the configuration file in the non-default
> location.
>
> Maybe you are working on a Debian environment, in that case you should be
using 'pg_ctlcluster' as a 'pg_ctl' replacement:

https://wiki.debian.org/PostgreSql#pg_ctl_replacement

Regards,

Juan José Santamaría Flecha

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2022-07-13 13:08 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-07-13 09:45 pg_ctl cannot find postgresql.conf Дмитрий Карасёв <karasev.dmitrii94@mail.ru>
2022-07-13 12:28 ` David G. Johnston <david.g.johnston@gmail.com>
2022-07-13 13:08   ` Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox