Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVeCW-000760-Eb for pgsql-admin@arkaria.postgresql.org; Mon, 04 May 2020 16:44:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jVeBz-0005ad-Q7 for pgsql-admin@arkaria.postgresql.org; Mon, 04 May 2020 16:43:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jVeBz-0005aV-6r for pgsql-admin@lists.postgresql.org; Mon, 04 May 2020 16:43:43 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jVeBw-0004Df-57 for pgsql-admin@lists.postgresql.org; Mon, 04 May 2020 16:43:41 +0000 Received: by mail-wr1-x442.google.com with SMTP id g13so21753173wrb.8 for ; Mon, 04 May 2020 09:43:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=JiwQO8qN4/fGU+ZDaCkbf70tvyrzPMb5AM2NEOZ166c=; b=m5MLUEDTwKDmW7kE1mmBsqW/Ci131lM2AL/izuPt51VsnSHgPSKtRQDiIOjhGhwyN7 7vwnlezoAI0GINBs5KbE0mVJTxKYmR8Dp91cZt2bv0rpT6IxVclRpzbhKbZU793+9fCc 3dnp3/YYQSzx25Vf7Xusw9LcQXxNzQCc5A9ecvIrDEJHk6wvmyH14VYk6kOFwQJ/3PKt P9vFFy4v0sCuWglWHQBehofLWj9ndNZxnKjUeC7U1k1TOAE3ndPAXAEO4rUWBX9m11NB MxasezjTPSl0Fwk5tlsh3T4NMhloKOnzzIYPBE8ciShj/RFHGIUBWa3T0pqLkWz7pHD/ 1cbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=JiwQO8qN4/fGU+ZDaCkbf70tvyrzPMb5AM2NEOZ166c=; b=JnGACqBPeSXjnWiKFi9zGR6zteGzjN2sGo9uhEk8zbDcX6dyP+69c9cmuyrGNXOyf3 Gzkvp00NEntAdAxLK885qNaAwBlutrF+ijpKOWFKjgvWVwubM84W44o1qzTTgMaOJrbm YNMjFMgC4ykjsfMJ5x9EhJ9bm2EJ1bgVso68Z7wElDpinp1VrRme4ETeQThc2CV13TNo WIzr1mlZwJmAZXLeg1amaLklHX8xV6TTuRt6jsHTv2MPCYhFWZt/yhgscZPykIEQZftA 8DHfdcrfdZ7DPTul+YozakfQc5mqGBXB5fBZeWd9l7od2NEYQY7HwiNEU/VQljR2t3UW RJRw== X-Gm-Message-State: AGi0PuYAnKWr98Q1UbzMMLWtIOFF0u6NXrzUFPvmXTvs0uBR/IwYjZQY rNnV+DUArF40DslP62uGRo2xGA== X-Google-Smtp-Source: APiQypLqsWJAzEwZdHDJJs7qHOnkZY+RZDV3skjiJlrVq4WjhE7Re1lP6nFoxYeom4lOi00WZVWTVw== X-Received: by 2002:a5d:4dcb:: with SMTP id f11mr197888wru.174.1588610617089; Mon, 04 May 2020 09:43:37 -0700 (PDT) Received: from localhost.localdomain (217-149-174-197.nat.highway.telekom.at. [217.149.174.197]) by smtp.gmail.com with ESMTPSA id d27sm18878610wra.30.2020.05.04.09.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 09:43:36 -0700 (PDT) Message-ID: Subject: Re: Error Message From: Laurenz Albe To: Brian Hansen , pgsql-admin@lists.postgresql.org Date: Mon, 04 May 2020 18:43:35 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.32.5 (3.32.5-1.fc30) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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