Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnPcj-0001Yq-LQ for pgsql-sql@arkaria.postgresql.org; Tue, 16 Jul 2019 15:44:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hnPch-0006H5-Ui for pgsql-sql@arkaria.postgresql.org; Tue, 16 Jul 2019 15:44:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hnPch-0006CC-Eo for pgsql-sql@lists.postgresql.org; Tue, 16 Jul 2019 15:44:11 +0000 Received: from sonic308-2.consmr.mail.bf2.yahoo.com ([74.6.130.41]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hnPcd-0000QG-DA for pgsql-sql@lists.postgresql.org; Tue, 16 Jul 2019 15:44:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1563291845; bh=QpciqN+9zxNdTn/168ZCz/4yfQVY26KfvmpUtgdI5gs=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=WxZdJwm4/KWCl7TRW9LXFhG2ptclFqBQHfCTJqEif81sHjEOZ8LccbcjPIYcMdS5474O5GCd9QoPodypQg3OrcKS0KfrXQndOE4VMyY6vG4+ZyzZT/vrBe/OXPVUJLiJUFY37uyIEPVnaZZURi2V1qG8PO56ICVS9fgUK8tzwF09HJ/2GNow53+++j0BftT0/lR6dMyy2GzPiUTmBoQ4jx9m0E1KbhvJTE2TQH75Xbf/4oreB3LS2JaBVJj9G/zrb97YcsAuKH7CrsffWbeNPqOlzu4EHOERO8YI1Bclj8B9QgdQ6M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Ml.8DC4zkB_PEdXVGcrBSyAvxbJga UuL3CL8N0aTSgtxp_e9gAyrjL.TtSJyqEM8dvZ3ohBWpx5YMWZNMEOUMojJ1E4krBXqfhwWu1aQg hGOcLtBo_uX4oMoGT4b5i3pZM59JhJbCJEDxNggEpD3vChE6.uUbmuZJ_50PWEEkD3PiFdyrhbZD PcR4V5.f58j.Fy_PKifCe6Mdn7WDTbwBsYx6AvBmXhA8YplDo2lVU_VWZqoVxWJyLdI6Zy81bizV CZow0wKzvTcAIzes8QhNUQ8JY9wH4l.GyQaGQdj0cGLU- Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.bf2.yahoo.com with HTTP; Tue, 16 Jul 2019 15:44:05 +0000 Date: Tue, 16 Jul 2019 15:44:03 +0000 (UTC) From: Karen Goh To: Andrew Gierth Cc: pgsql-sql@lists.postgresql.org Message-ID: <774827472.1178535.1563291843182@mail.yahoo.com> In-Reply-To: <87sgr6ypvp.fsf@news-spur.riddles.org.uk> References: <110414461.528890.1563075361778@mail.yahoo.com> <1846547624.530883.1563075598322@mail.yahoo.com> <40544440.741577.1563178850210@mail.yahoo.com> <768811852.1032981.1563242356010@mail.yahoo.com> <774271584.1091322.1563257675315@mail.yahoo.com> <1984680550.1098414.1563257845450@mail.yahoo.com> <59735533.1068095.1563265280844@mail.yahoo.com> <87o91u1idu.fsf@news-spur.riddles.org.uk> <1919398337.1106688.1563269115584@mail.yahoo.com> <87k1ci1g9u.fsf@news-spur.riddles.org.uk> <2066139407.1119562.1563270535921@mail.yahoo.com> <87d0ia1bmt.fsf@news-spur.riddles.org.uk> <1787690642.1167081.1563281149734@mail.yahoo.com> <875zo213dq.fsf@news-spur.riddles.org.uk> <274777029.1154161.1563286780671@mail.yahoo.com> <871ryq12hp.fsf@news-spur.riddles.org.uk> <472848228.1169550.1563289333511@mail.yahoo.com> <87sgr6ypvp.fsf@news-spur.riddles.org.uk> Subject: Re: how to resolve org.postgresql.util.PSQLException: ERROR: operator does not exist: text = integer? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1178534_763053165.1563291843181" Content-Length: 3439 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1178534_763053165.1563291843181 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Tuesday, July 16, 2019, 11:21:47 PM GMT+8, Andrew Gierth wrote: >>>>> "Karen" == Karen Goh writes: >> What exactly is in your Program Files? Karen> PostgreSQL which has folder named 10 and then open up you will Karen> get to see bin folder, data folder, script folder .... OK, and did you try doing "SHOW log_destination;" as a query, for example in the pgadmin4 query window? also "SHOW logging_collector;" and "SHOW data_directory;" Alright. Thanks. Let me try it. >> If you want to pass an array value as a parameter, you can't use IN >> (x), you have to use = ANY (x) instead. Karen> Is Any (x) this format applies only to Postgresql ? scalar = ANY (arrayvalue) is a postgresql extension, yes. The SQL spec says that the syntax (col IN (1,2,3)) is equivalent to (col = ANY (VALUES (1),(2),(3))) but this doesn't allow you to pass a single array parameter for the IN list either in PostgreSQL or in standard SQL. In both PostgreSQL and standard SQL you can do: (col = ANY (select v from unnest(arrayvalue) as u(v))) but this isn't the recommended style for PostgreSQL because it is less efficient. I have been told In clause in the way to do it. So, not sure why am I getting that error.... cos preferably not using any extension if it can be done using In clause.. -- Andrew (irc:RhodiumToad) ------=_Part_1178534_763053165.1563291843181 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable





On Tuesday, July 16, 2019, 11:21:4= 7 PM GMT+8, Andrew Gierth <andrew@tao11.riddles.org.uk> wrote:

>>>>> "Karen" =3D=3D Karen Goh <karenworld= @yahoo.com> writes:

>> What exactly is in your Program File= s?

Karen> PostgreSQL which has folder named 10 and then open up y= ou will
Karen> get to see bin folder, data folder, script folder ....=

OK, and did you try doing "SHOW log_destination;" as a qu= ery, for
example in the pgadmin4 query window? also "SHOW logging_c= ollector;"
and "SHOW data_directory;"

Alright. Th= anks. Let me try it.

>> If you want to pass an array value as= a parameter, you can't use IN
>> (x), you have to use =3D ANY= (x) instead.

Karen> Is Any (x) this format applies only to Postg= resql ?

scalar =3D ANY (arrayvalue) is a postgresql extension, yes.=

The SQL spec says that the syntax

(col IN (1,2,3))

is= equivalent to

(col =3D ANY (VALUES (1),(2),(3)))

but this do= esn't allow you to pass a single array parameter for the IN
list eit= her in PostgreSQL or in standard SQL. In both PostgreSQL and
standard SQ= L you can do:

(col =3D ANY (select v from unnest(arrayvalue) as u(v)= ))

but this isn't the recommended style for PostgreSQL because i= t is less
efficient.

I have been told In clause in the way to do = it.
So, not sure why am I getting that error....
cos preferably not u= sing any extension if it can be done using In clause..


--
An= drew (irc:RhodiumToad)


=20 ------=_Part_1178534_763053165.1563291843181--