pg_sql | Unsorted

Telegram-канал pg_sql - PostgreSQL

2830

English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.

Subscribe to a channel

PostgreSQL

If there is any Postgres DBA working in Hyderabad, please let me know I need help.

Читать полностью…

PostgreSQL

That's the understatement of the year ;-)

Читать полностью…

PostgreSQL

Pgbasebackup working but I want to take a db backup using pgdump any idea or command?

Читать полностью…

PostgreSQL

Logical replication has issues with LoBs

Читать полностью…

PostgreSQL

Any other option to take dump full db

Читать полностью…

PostgreSQL

Are you saving to /tmp/?

Читать полностью…

PostgreSQL

Any specific error ?

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

Yep! Glad to be able to help.

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

Never too late to stop using mssql.

Читать полностью…

PostgreSQL

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

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

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

How can i listen for changes in a table with nodejs api? And the notify the user? Websockets?

Читать полностью…

PostgreSQL

ParadeDB - An Elasticsearch Alternative built on PostgreSQL

Author: Editorial Team

https://www.blackslate.io/articles/paradedb-an-elasticsearch-alternative-built-on-postgresql

Читать полностью…

PostgreSQL

This or try on high Ram machine

Читать полностью…

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.

Читать полностью…

PostgreSQL

Is that on-prem server or managed service..I guess on prem

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

Do you add domain restriction in the database or in the API?

Читать полностью…

PostgreSQL

Custom format only no luck tried directory format and plain also but result same

Читать полностью…

PostgreSQL

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

Читать полностью…

PostgreSQL

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.

Читать полностью…

PostgreSQL

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

Читать полностью…

PostgreSQL

Can you please give an example schema? I can't imagine it 😅

Читать полностью…

PostgreSQL

I'm using sql server 👀

Читать полностью…

PostgreSQL

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, ...

Читать полностью…

PostgreSQL

You can use a trigger that raises a NOTIFY event

Читать полностью…

PostgreSQL

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

Читать полностью…
Subscribe to a channel