Catégorie : Postgresql

.pgpass

Utilisation du .pgpass : https://newfivefour.com/postgresql-pgpass-password-file.html   attention l’utilisation du .pgpass ne fonctionne pas avec une connexion LDAP : psql: FATAL:  authentification LDAP échouée pour l’utilisateur « titi»      

Trouver un objet particulier en Postgres

select oid,relfilenode,relname from pg_class where relfilenode=’16826′;  oid  | relfilenode |        relname        ——-+————-+———————– 16804 |       16826 | table_totooudev=# select oid,relfilenode,relname from pg_class where relname=’table_toto’;  

Translate »