pg_sql | Unsorted

Telegram-канал pg_sql - PostgreSQL

2634

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

Is there any other way other than changing in the ddl as the ddl is just fetching the data from a table and we do not want to change the data in the table..

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

PostgreSQL

What do you mean by "need to chage a logic" ? Ideally if you want to chanege the view - one need to change the view DDL.

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

PostgreSQL

no, this post about google maps api

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

PostgreSQL

Maybe. That's why I asked if someone had already solved a similar problem and could share their experience.

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

PostgreSQL

I mean this: https://habrastorage.org/r/w1560/getpro/habr/post_images/d69/93c/2ca/d6993c2caa8910d7b10a57268b41a311.png

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

PostgreSQL

I will add that the points (coordinates) do not change. They are almost never deleted, but are regularly added one at a time.

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

PostgreSQL

Can't you please just share the explain link?

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

PostgreSQL

https://ibb.co/TmcmKS6
https://ibb.co/7Gd0cCy

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

PostgreSQL

I did not set any seq_page random_page_cost vars - it is default

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

PostgreSQL

We tried to
SET enable_seqscan = off
Reindex database
Analyze...

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

PostgreSQL

Hello and welcome to this chat. Here we discuss PostgreSQL and provide best-effort voluntary support on Postgresql issues.
If you have any question, try asking kindly, including log files, error descriptions and perhaps what you're trying to do.

- 🚫 photos and screenshots
- 🚫 spam and offtopic
- ✅ questions with log files and clear explanation of what's gone wrong

⬇️ Press the button down here ⬇️

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

PostgreSQL

Tried bt didn't work

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

PostgreSQL

Have fun reading, then!

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

PostgreSQL

https://www.postgresql.org/docs/current/runtime-config-connection.html

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

PostgreSQL

Hello and welcome to this chat. Here we discuss PostgreSQL and provide best-effort voluntary support on Postgresql issues.
If you have any question, try asking kindly, including log files, error descriptions and perhaps what you're trying to do.

- 🚫 photos and screenshots
- 🚫 spam and offtopic
- ✅ questions with log files and clear explanation of what's gone wrong

⬇️ Press the button down here ⬇️

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

PostgreSQL

I have one view where the naming convention is LO_ABC_FY24_00001 in a view. For the upcoming insertions I need to change the convention to LC_FY24_00001

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

PostgreSQL

Hi all, i have a view where i need to change a logic. What are the different ways other than changing the ddl to change the logic?

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

PostgreSQL

I would imagine that that "post_image" you shared comes from an actual post? 🤔

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

PostgreSQL

Ok, I understand. More of a GIS topic though. I'd say 20k points should not cause PostGIS to sweat, but a materialized view might make sense?

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

PostgreSQL

What do you mean by clustering?
If you index the points with a GiST or maybe SP-GiST index, you get KNN support and can just fetch them by distance.

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

PostgreSQL

Hi! Is it a good idea to use PostGIS to cluster points on the map? Right now i have ~20k points, on average their number is growing by ~ 10% per year. Points (clusters) need to be shown on the map and increase/decrease the cluster radius depending on the zoom level in real time. The zoom is limited, ofc.

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

PostgreSQL

This is what I have for now

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

PostgreSQL

do you know any company in india which provides support on postgres community version.

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

PostgreSQL

What kind of index you created? What is your seq_page and random_page cost?

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

PostgreSQL

.Hello, can someone say why this query in poatgresql takes ages (2h 45min) and in sql server seconds.

Somehow Postgres doea not want to uae indexes:

WITH RECURSIVE cte_dms_proj_ancestor (o_top, o_projectno) AS
                (SELECT o_projectno, o_projectno FROM dms_proj
                UNION ALL
                SELECT a.o_top, p.o_projectno
                FROM dms_proj p
                JOIN cte_dms_proj_ancestor a ON a.o_projectno = p.o_parentno)
SELECT t1.o_projectno,t1.o_itemno,t1.o_workflowno,t1.o_stateno
FROM dms_doc AS t1
WHERE (t1.o_projectno IN (SELECT o_projectno FROM cte_dms_proj_ancestor WHERE o_top=3405))
AND (t1.o_applno=2)
OR (t1.o_projectno IN (SELECT o_projectno FROM cte_dms_proj_ancestor WHERE o_top=3405))
AND (t1.o_filename like N'%.abc')

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

PostgreSQL

The port could be managed by your systemd unit file

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

PostgreSQL

go to postgreSQL.conf file and change the port then, then restart your db cluster

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

PostgreSQL

It's a documentation

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

PostgreSQL

I need help to set port number in postgresql

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

PostgreSQL

Both have their pros and cons. But for HA patroni is recommended.

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