Size: a a a

pgsql – PostgreSQL

2021 January 08

Z

Zumrud in pgsql – PostgreSQL
Hi.
2021-01-08 09:30:26.927 +04 [27141] FATAL:  password authentication failed for user "postgres"
2021-01-08 09:30:26.927 +04 [27141] DETAIL:  Password does not match for user "postgres".
       Connection matched pg_hba.conf line 94: "host    all             all             0.0.0.0/0               md5"
источник

Z

Zumrud in pgsql – PostgreSQL
Zumrud
Hi.
2021-01-08 09:30:26.927 +04 [27141] FATAL:  password authentication failed for user "postgres"
2021-01-08 09:30:26.927 +04 [27141] DETAIL:  Password does not match for user "postgres".
       Connection matched pg_hba.conf line 94: "host    all             all             0.0.0.0/0               md5"
But i know postgres user password and i can connect db with postgres user on pgadmin
источник

GT

George Tarasov in pgsql – PostgreSQL
Pgadmin may use other connection types, for example "local" or "host/ipv6". Check other lines in your pghba and recheck your password.
источник

НШ

Назар Швець... in pgsql – PostgreSQL
Всем привет! Возможно банальный вопрос , но и я не спец. В результате join получилась таблица , в кортеже которой есть поля нужного обьекта , и поля из второй таблицы . Поскольку несколько кортежей из второй таблицы соответствуют одному объекту из первой , получаются ряды в которых полностью повторяется нужный мне обьект. Можно ли как-то силами SQL вернуть только уникальные обьекты ?
источник

РЖ

Роман Жарков... in pgsql – PostgreSQL
Можно. Например, distinct.
источник

НШ

Назар Швець... in pgsql – PostgreSQL
Роман Жарков
Можно. Например, distinct.
оу , полчаса назад пробовал , не выходило . Сейчас попробовал , получилось ))))
Спасибо за помощь.
источник

Z

Zumrud in pgsql – PostgreSQL
George Tarasov
Pgadmin may use other connection types, for example "local" or "host/ipv6". Check other lines in your pghba and recheck your password.
local   all             all                                     peer
# IPv4 local connections:
host    all             all             127.0.0.1/32            ident
# IPv6 local connections:
host    all             all             ::1/128                 ident
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     peer
host    replication     all             127.0.0.1/32            ident
host    replication     all             ::1/128                 ident
host    all             all             0.0.0.0/0               md5
источник

Z

Zumrud in pgsql – PostgreSQL
Zumrud
local   all             all                                     peer
# IPv4 local connections:
host    all             all             127.0.0.1/32            ident
# IPv6 local connections:
host    all             all             ::1/128                 ident
# Allow replication connections from localhost, by a user with the
# replication privilege.
local   replication     all                                     peer
host    replication     all             127.0.0.1/32            ident
host    replication     all             ::1/128                 ident
host    all             all             0.0.0.0/0               md5
i can connect pgadmin with postgres user, but i give error on log
источник

GT

George Tarasov in pgsql – PostgreSQL
Above error message definitely say that password is wrong. If you say that you hopefully connect in pgadmin, the only explanation is that you connect to another pg instance. It's not possible to give the error in log and get success connection the same time.
источник

I

Ivan in pgsql – PostgreSQL
Maxim Makarov
Подскажите пожалуйста, хотим заюзать LISTEN/NOTIFY для realtime обновления данных в интерфейсе нашего приложения. Повесил на прод базе пару триггеров с вызовом pg_notify на частообновляемые таблицы и вижу что стабильно раз в несколько часов роллбекается транзакция, которая вызывает триггер, с ошибкой “too many notifications in the NOTIFY queue”. Решил проверить размер очереди с помощью pg_notification_queue_usage(), как оказалось очередь растёт постоянно и в момент переполнения обнуляется (у неё размер 8гб). Решил убрать все триггеры — размер очереди стоит на месте, она даже в этом случае по какой-то причине сама не удаляется. Прочитал что очередь может не чиститься если кто-то из бекендов вызвал LISTEN и начал транзакцию. Решил проверить активных листенеров — таковых нет вообще.

Что интересно, на дев базе (полной копии прода) очередь всегда пустая, а если пушу туда много ивентов каким-нибудь bulk апдейтом, то на миллисекунду очередь заполняется но тут же очищается.

Полдня гуглю и не могу ничего найти.
Здравствуйте, скажите, а вы нашли причину переполнения очереди?
источник

Z

Zumrud in pgsql – PostgreSQL
George Tarasov
Above error message definitely say that password is wrong. If you say that you hopefully connect in pgadmin, the only explanation is that you connect to another pg instance. It's not possible to give the error in log and get success connection the same time.
no. it's same instance.
источник

Z

Zumrud in pgsql – PostgreSQL
George Tarasov
Above error message definitely say that password is wrong. If you say that you hopefully connect in pgadmin, the only explanation is that you connect to another pg instance. It's not possible to give the error in log and get success connection the same time.
-bash-4.2$ psql -d postgres -U postgres -h server_host
Password for user postgres:
psql (11.10)
Type "help" for help.

postgres=# \q
источник

Z

Zumrud in pgsql – PostgreSQL
George Tarasov
Above error message definitely say that password is wrong. If you say that you hopefully connect in pgadmin, the only explanation is that you connect to another pg instance. It's not possible to give the error in log and get success connection the same time.
and i can connect pgadmin
источник

GT

George Tarasov in pgsql – PostgreSQL
Zumrud
no. it's same instance.
So, it's not your connection. May be your server is on a real ip-address, i don't know, and you should check external connections, add log_connections=on to check where connections are from.
источник

Z

Zumrud in pgsql – PostgreSQL
George Tarasov
So, it's not your connection. May be your server is on a real ip-address, i don't know, and you should check external connections, add log_connections=on to check where connections are from.
if i change og_connections=on on postgresql.conf. I must restart db?
источник

GT

George Tarasov in pgsql – PostgreSQL
Zumrud
if i change og_connections=on on postgresql.conf. I must restart db?
yes, you do.
источник

Z

Zumrud in pgsql – PostgreSQL
George Tarasov
yes, you do.
Okay thanks. One question more. I want to clear psql history
источник

k

kiosaku in pgsql – PostgreSQL
rm .psql_history
источник

Z

Zumrud in pgsql – PostgreSQL
kiosaku
rm .psql_history
thanks
источник

SJ

Shaxobbek Jurayev in pgsql – PostgreSQL
Добрый день, можете помочь с авто импортом таблиц в Postgres из папки, где хранятся xlsx файлы.
источник