2830
English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.
If there is any Postgres DBA working in Hyderabad, please let me know I need help.
Читать полностью…
Pgbasebackup working but I want to take a db backup using pgdump any idea or command?
Читать полностью…
Hope you're not taking the LOBs backup in text format.
You may use this to take it in custom archive
pg_dump -Fc -f mydatabase.dump mydatabase
Same while doing pg_restore.
Of course it depends on your needs. If just doing stuff in the browser related to the specific type then you might have it easier storing the details as JSON and just processing them in the browser. But if you want to do any work on them in the database that is probably not ideal, even in PostgreSQL which supports indexing over jsonb etc.
Читать полностью…
Ah, that might have been good to specify first as this is a PostgreSQL channel. 😼
You can essentially do the above in SQL server by making the primary key of a subclass specialisation table with the details specific to a type of payment be a foreign key linked to the primary key of a base class table.
Whether that is the right solution for your particular case is another matter. But it is nice in that IDs are unique and if the specific details of the type of table are not required only the base table needs to be consulted. You also don't have a bunch of null values for irrelevant columns as you might if trying to stuff all types into one table.
PostgreSQL does offer the option for inheritance, perhaps this is useful for you? The order and subscription could be specialisations of Payable, perhaps subscriptions have periods and start dates while orders have order dates for example. https://www.postgresql.org/docs/current/tutorial-inheritance.html
Читать полностью…
What is your preferred way when dealing with polymorphism? intersection tables? multiple FKs? ...?
I can't really evalute the trade-offs. they seem kinda equal, so I'm asking for your experience.
How can i listen for changes in a table with nodejs api? And the notify the user? Websockets?
Читать полностью…
ParadeDB - An Elasticsearch Alternative built on PostgreSQL
Author: Editorial Team
https://www.blackslate.io/articles/paradedb-an-elasticsearch-alternative-built-on-postgresql
Cluster level all DB dump can be done using pg_basebackup for worry less transfer of LOBs, if you can afford downtime & do all necessary steps.
Читать полностью…
Is that on-prem server or managed service..I guess on prem
Читать полностью…
Looks like some of your LOBs are really large size, chewing up memory.. you can try to identify the Big sized LOB (if, a few) & export them separately using lo_export maybe.
Читать полностью…
Do you add domain restriction in the database or in the API?
Читать полностью…
Custom format only no luck tried directory format and plain also but result same
Читать полностью…
Hi Team good evening am trying to database dump in 12 version pgdump but the db having lot of lob data types so while running pgdump its getting killed I have tried schema , data, and lob separate dump but still same and not able to achieve the backup any idea how to fix this … thanks in advance
Читать полностью…
wow wow 🔥
The first link is what I was looking for! I was experimenting with the same design, but I had problems with limiting sub-classes to be of only one type, and it has a solution.
Perhaps https://www.sqlteam.com/articles/implementing-table-inheritance-in-sql-server helps, or class table inheritance in this answer has a clear example. https://stackoverflow.com/a/3579462/2283898
Читать полностью…
Can you please give an example schema? I can't imagine it 😅
Читать полностью…
What I try to solve is handling different payment "reason"s (probably not the correct term). I have a payments table including info about amount, date, and stuff like that. But the payment can be for an order, a subscription, ...
Читать полностью…
Yes, there are a lots of third party tool that could help you with security. If you are looking for a document with a checklist of security hardening, you should look up cis guide of postgresql
Читать полностью…