Re: Error Message

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Brian Hansen <dulanic(at)gmail(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: Error Message
Date: 2020-05-04 16:43:35
Message-ID: a6fea837d96f2ae9a685503fe951512befc650cb.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support pgsql-admin

On Mon, 2020-05-04 at 10:28 -0500, Brian Hansen wrote:
> So I installed pgAdmin 4 and many times when I am going to certain
> sections, it errors out showing this error.
> https://snipboard.io/TyU8b3.jpg
>
> This error is always caused by the LENGTH(spc.spcname) portion of the
> query.....and it can be corrected by updating to
> LENGTH(spc.spcname::text), but I can't find that this can be
> customized on my side and it's built into pgadmin? Unless I am
> wrong...
>
> The full query that pgadmin is running that errors is here:
> https://pastebin.com/SrTWp8bm
>
> Version: 4.21
> OS: Windows 10
> Desktop mode
> Postgresql version: Docker postgres:12.2

If I look at the error message and have to guess, I'd say that you have
created a type or domain "length", which leads to confusion with the
"length(text)" function:

CREATE DOMAIN length AS text;

SELECT length('something') < 42;
ERROR: operator does not exist: length < integer
LINE 1: SELECT length('something') < 42;
^
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.

Workaround: don't use "length" as the name of a custom object.

But a query run by pgAdmin should still not fail.

You should write to the pgadmin mailing list and tell them what object
"length" you created and how to reproduce the error.

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Cherio 2020-05-04 21:38:23 Re: What does this icon means?
Previous Message Brian Hansen 2020-05-04 15:51:19 Fwd: Error Message

Browse pgsql-admin by date

  From Date Subject
Next Message Akshay Joshi 2020-05-05 05:51:49 Re: Error Message
Previous Message Brian Hansen 2020-05-04 15:51:19 Fwd: Error Message