pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
[pgvector/pgvector] issue #750: max_connections='10'
5+ messages / 2 participants
[nested] [flat]

* [pgvector/pgvector] issue #750: max_connections='10'
@ 2025-01-06 06:46  "HosseinSayyedMousavi (@HosseinSayyedMousavi)" <noreply+HosseinSayyedMousavi@github.com>
  0 siblings, 0 replies; 5+ messages in thread

From: HosseinSayyedMousavi (@HosseinSayyedMousavi) @ 2025-01-06 06:46 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hello, dear friends!

My project, which is running with the pgvector Docker image, has been facing the "too many connections already!" issue for a long time. Last week, I discovered that the file /var/lib/postgresql/data/postgresql.auto.conf, which is empty by default in PostgreSQL, had been modified, and the following line was added:
```
# Do not edit this file manually!
# It will be overwritten by the ALTER SYSTEM command.
max_connections = '10'
```
When I cleared this file before starting my project to restore the default PostgreSQL settings (```max_connections = 100```), my problem was resolved. Now the project is running smoothly, and the issue I've been dealing with for a year is completely gone.

I wanted to ask: Is there a specific reason this modification was made as part of development? Is there any chance that clearing this file might cause new issues in my project in the future?

Thank you!

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

* Re: [pgvector/pgvector] issue #750: max_connections='10'
@ 2025-01-06 14:01  "ankane (@ankane)" <noreply+ankane@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: ankane (@ankane) @ 2025-01-06 14:01 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @HosseinSayyedMousavi, it sounds like you ran `ALTER SYSTEM` at some point to set it to 10. You can use `ALTER SYSTEM RESET max_connections;` and restart the server to reset it.

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

* Re: [pgvector/pgvector] issue #750: max_connections='10'
@ 2025-01-06 14:01  "ankane (@ankane)" <noreply+ankane@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: ankane (@ankane) @ 2025-01-06 14:01 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

@ankane closed this.

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

* Re: [pgvector/pgvector] issue #750: max_connections='10'
@ 2025-01-20 04:48  "HosseinSayyedMousavi (@HosseinSayyedMousavi)" <noreply+HosseinSayyedMousavi@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: HosseinSayyedMousavi (@HosseinSayyedMousavi) @ 2025-01-20 04:48 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

Hi @ankane this config is default in pgvector docker image. Please check /var/lib/postgresql/data/postgresql.auto.conf file in a container

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

* Re: [pgvector/pgvector] issue #750: max_connections='10'
@ 2025-01-20 06:29  "ankane (@ankane)" <noreply+ankane@github.com>
  3 siblings, 0 replies; 5+ messages in thread

From: ankane (@ankane) @ 2025-01-20 06:29 UTC (permalink / raw)
  To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>

It's not the default. You can check this with:

```sh
docker run -e POSTGRES_HOST_AUTH_METHOD=trust pgvector/pgvector:pg17
# and in a different window
docker exec -it <container-id> cat /var/lib/postgresql/data/postgresql.auto.conf
```

which outputs:

```text
# Do not edit this file manually!
# It will be overwritten by the ALTER SYSTEM command.
```

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


end of thread, other threads:[~2025-01-20 06:29 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-01-06 06:46 [pgvector/pgvector] issue #750: max_connections='10' "HosseinSayyedMousavi (@HosseinSayyedMousavi)" <noreply+HosseinSayyedMousavi@github.com>
2025-01-06 14:01 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-01-06 14:01 ` "ankane (@ankane)" <noreply+ankane@github.com>
2025-01-20 04:48 ` "HosseinSayyedMousavi (@HosseinSayyedMousavi)" <noreply+HosseinSayyedMousavi@github.com>
2025-01-20 06:29 ` "ankane (@ankane)" <noreply+ankane@github.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