Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread Tom Lane
"David G. Johnston" writes: > Ok, so the error is not emanating from your code but rather the body of the > ll_to_earth function defined in the earthdistance extension. Yeah. That is CREATE FUNCTION ll_to_earth(float8, float8) RETURNS earth LANGUAGE SQL IMMUTABLE STRICT PARALLEL SAFE AS 'SELECT

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread David G. Johnston
On Saturday, November 30, 2024, PopeRigby wrote: > > Ok, so the error is not emanating from your code but rather the body of > the ll_to_earth function defined in the earthdistance extension. > > David J. > > By code do you mean my sql file created by pg_dumpall? Sorry, I'm just a > self-hoster s

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread PopeRigby
On 11/30/24 19:45, David G. Johnston wrote: On Saturday, November 30, 2024, PopeRigby wrote: On 11/30/24 18:41, David G. Johnston wrote: On Saturday, November 30, 2024, PopeRigby wrote: On 11/30/24 17:27, David G. Johnston wrote: On Saturday, November 30, 2024, P

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread David G. Johnston
On Saturday, November 30, 2024, PopeRigby wrote: > On 11/30/24 18:41, David G. Johnston wrote: > > On Saturday, November 30, 2024, PopeRigby wrote: > >> On 11/30/24 17:27, David G. Johnston wrote: >> >> On Saturday, November 30, 2024, PopeRigby wrote: >> >>> On 11/29/24 17:47, Adrian Klaver wro

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread Marco Torres
CREATE EXTENSION cube; I do not know if you might need this one as well. I am assuming that you are working on a gist server. CREATE EXTENSION earthdistance; I am assuming you are working with a gist server. This ought to be useful. https://gist.cs.berkeley.edu/pggist/ You might want to read t

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread PopeRigby
On 11/30/24 18:41, David G. Johnston wrote: On Saturday, November 30, 2024, PopeRigby wrote: On 11/30/24 17:27, David G. Johnston wrote: On Saturday, November 30, 2024, PopeRigby wrote: On 11/29/24 17:47, Adrian Klaver wrote: On 11/29/24 17:34, PopeRigby wrot

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread Adrian Klaver
On 11/30/24 19:26, PopeRigby wrote: On 11/30/24 18:41, David G. Johnston wrote: On Saturday, November 30, 2024, PopeRigby wrote: On 11/30/24 17:27, David G. Johnston wrote: On Saturday, November 30, 2024, PopeRigby wrote: On 11/29/24 17:47, Adrian Klaver wrote:

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread PopeRigby
On 11/30/24 18:41, David G. Johnston wrote: On Saturday, November 30, 2024, PopeRigby wrote: On 11/30/24 17:27, David G. Johnston wrote: On Saturday, November 30, 2024, PopeRigby wrote: On 11/29/24 17:47, Adrian Klaver wrote: On 11/29/24 17:34, PopeRigby wrot

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread David G. Johnston
On Saturday, November 30, 2024, PopeRigby wrote: > On 11/30/24 17:27, David G. Johnston wrote: > > On Saturday, November 30, 2024, PopeRigby wrote: > >> On 11/29/24 17:47, Adrian Klaver wrote: >> >>> On 11/29/24 17:34, PopeRigby wrote: >>> >>> psql:all.sql:4104: ERROR: type "earth" does not exi

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread PopeRigby
On 11/30/24 17:27, David G. Johnston wrote: On Saturday, November 30, 2024, PopeRigby wrote: On 11/29/24 17:47, Adrian Klaver wrote: On 11/29/24 17:34, PopeRigby wrote: psql:all.sql:4104: ERROR:  type "earth" does not exist LINE 1: ...ians($1))*sin(radians(

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread David G. Johnston
On Saturday, November 30, 2024, PopeRigby wrote: > On 11/29/24 17:47, Adrian Klaver wrote: > >> On 11/29/24 17:34, PopeRigby wrote: >> >> psql:all.sql:4104: ERROR: type "earth" does not exist >> LINE 1: ...ians($1))*sin(radians($2))),earth()*sin(radians($1)))::earth >> >> QUERY: SELECT cube(cub

Re: Errors when restoring backup created by pg_dumpall

2024-11-30 Thread PopeRigby
On 11/29/24 17:47, Adrian Klaver wrote: On 11/29/24 17:34, PopeRigby wrote: My HDD recently failed so I'm trying to restore my backup, but I'm running into some errors. I've been using a systemd service that periodically backs up my cluster with pg_dumpall, and I'm using this command to resto

Regarding logical slots allocation with logical rw

2024-11-30 Thread Durgamahesh Manne
Hi I have 32vcpus and 128GB ram and 13 slots only created but need 18 more logical slots needed in this case mwp > 32 max replication slots > 40 allocated logical rw > 18 wal senders > 55 mpw > 6 avmw > 3 here 18+6+3 = 27 + 13 used slots = 40 So here howmany logical slots we can create upto bas

Re: PostgreSQL 15.10 update corrective action for ATTACH PARTITION/DETACH PARTITION

2024-11-30 Thread Paul Foerster
Hi Alvaro, > On 30 Nov 2024, at 08:41, Alvaro Herrera wrote: > > Only if you have self-referencing FKs in partitioned tables. It > would be an interesting data point to verify whether this reports > anything else. Also, I'd be really curious if your databases include > the case I'm suspicious