2634
English speaking PostgreSQL public chat. This group is for discussions on PostgreSQL-related topics and strives to provide best-effort support as well.
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..
Читать полностью…
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.
Читать полностью…
Maybe. That's why I asked if someone had already solved a similar problem and could share their experience.
Читать полностью…
I mean this: https://habrastorage.org/r/w1560/getpro/habr/post_images/d69/93c/2ca/d6993c2caa8910d7b10a57268b41a311.png
Читать полностью…
I will add that the points (coordinates) do not change. They are almost never deleted, but are regularly added one at a time.
Читать полностью…
I did not set any seq_page random_page_cost vars - it is default
Читать полностью…
We tried to
SET enable_seqscan = off
Reindex database
Analyze...
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 ⬇️
https://www.postgresql.org/docs/current/runtime-config-connection.html
Читать полностью…
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 ⬇️
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
Читать полностью…
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?
Читать полностью…
I would imagine that that "post_image" you shared comes from an actual post? 🤔
Читать полностью…
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?
Читать полностью…
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.
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.
Читать полностью…
do you know any company in india which provides support on postgres community version.
Читать полностью…
What kind of index you created? What is your seq_page and random_page cost?
Читать полностью…
.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')
The port could be managed by your systemd unit file
Читать полностью…
go to postgreSQL.conf file and change the port then, then restart your db cluster
Читать полностью…
Both have their pros and cons. But for HA patroni is recommended.
Читать полностью…