chore(postgres): dump sources and usage in the last like couple of days

This commit is contained in:
Michele Cereda
2025-03-05 08:47:15 +01:00
parent fd4119d6e8
commit b9d1e02133
2 changed files with 3 additions and 0 deletions

View File

@@ -239,6 +239,7 @@ psql -h 'localhost' -p '6543' -U 'postgres' -d 'postgres' -W
- [PostgreSQL: Show all the privileges for a concrete user]
- [PostgreSQL - disabling constraints]
- [Hashing a String to a Numeric Value in PostgreSQL]
- [I replaced my entire tech stack with Postgres...]
<!--
Reference
@@ -269,6 +270,7 @@ psql -h 'localhost' -p '6543' -U 'postgres' -d 'postgres' -W
[how to scram in postgres with pgbouncer]: https://www.crunchydata.com/blog/pgbouncer-scram-authentication-postgresql
[how to search a specific value in all tables (postgresql)?]: https://stackoverflow.com/questions/5350088/how-to-search-a-specific-value-in-all-tables-postgresql/23036421#23036421
[how to write update function (stored procedure) in postgresql?]: https://stackoverflow.com/questions/21087710/how-to-write-update-function-stored-procedure-in-postgresql
[i replaced my entire tech stack with postgres...]: https://www.youtube.com/watch?v=3JW732GrMdg
[pgxn-manager]: https://github.com/pgxn/pgxn-manager
[postgresql - disabling constraints]: https://stackoverflow.com/questions/2679854/postgresql-disabling-constraints#2681413
[postgresql_anonymizer]: https://postgresql-anonymizer.readthedocs.io/en/stable/

View File

@@ -206,6 +206,7 @@ GRANT ALL PRIVILEGES ON foo_table TO jonathan;
GRANT admins TO joe;
GRANT SELECT, INSERT ON foo_table IN SCHEMA public TO kevin;
GRANT SELECT (col1), UPDATE (col1) ON ALL TABLES IN SCHEMA public TO zoe;
ALTER DEFAULT PRIVILEGES IN SCHEMA bar_schema GRANT SELECT ON TABLES TO foo;
-- Close the connection to the current DB