Re: ERROR: found xmin from before relfrozenxid; MultiXactid does no longer exist -- apparent wraparound

2024-05-31 Thread Thom Brown
On Fri, May 31, 2024, 09:29 Laurenz Albe wrote: > On Thu, 2024-05-30 at 14:58 +, Alanoly Andrews wrote: > > We have a postgres 10.7 database which reports a number of issues on > user-created > > tables as well as system tables. Most errors are one of the following: > > -- ERROR: found xmin

Re: Listing only the user defined types (with owners)

2024-05-02 Thread Thom Brown
On Thu, 2 May 2024 at 12:40, Durumdara wrote: > Hello! > > I have a script which can change the table owners to the database owner. > > I select the tables like this: > > FOR r IN SELECT tablename FROM pg_tables WHERE (schemaname = 'public') > and (tableowner <> act_dbowner) > LOOP > ...

Re: White space affecting parsing of range values

2020-05-06 Thread Thom Brown
On Wed, 6 May 2020 at 17:33, Tom Lane wrote: > > Thom Brown writes: > > I guess I should read the docs more carefully. Shouldn't this be > > insignificant for a numeric value? > > That would require the range code to know whether the subtype considers > whitespace s

Re: White space affecting parsing of range values

2020-05-06 Thread Thom Brown
On Wed, 6 May 2020 at 17:30, Adrian Klaver wrote: > > On 5/6/20 9:19 AM, Thom Brown wrote: > > On Wed, 6 May 2020 at 17:13, Adrian Klaver > > wrote: > >> > >> On 5/6/20 9:00 AM, Thom Brown wrote: > >>> Hi, > >>> > >>

Re: White space affecting parsing of range values

2020-05-06 Thread Thom Brown
On Wed, 6 May 2020 at 17:13, Adrian Klaver wrote: > > On 5/6/20 9:00 AM, Thom Brown wrote: > > Hi, > > > > I noticed I'm getting an error when adding white space to a numeric > > range. I can run this: > > > > postgres=# SELECT 5::n

White space affecting parsing of range values

2020-05-06 Thread Thom Brown
Hi, I noticed I'm getting an error when adding white space to a numeric range. I can run this: postgres=# SELECT 5::numeric <@ '(,10]'::numrange; ?column? -- t (1 row) But I can't run this: postgres=# SELECT 5::numeric <@ '( ,10]'::numrange; ERROR: invalid input syntax for type