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 1iEuDC-0004p5-KM for pgsql-bugs@arkaria.postgresql.org; Mon, 30 Sep 2019 11:51:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iEuDB-0006B1-FN for pgsql-bugs@arkaria.postgresql.org; Mon, 30 Sep 2019 11:51:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iEsgO-0006t3-Ml for pgsql-bugs@lists.postgresql.org; Mon, 30 Sep 2019 10:13:33 +0000 Received: from sonic304-20.consmr.mail.ne1.yahoo.com ([66.163.191.146]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iEsgH-0002bv-BF for pgsql-bugs@lists.postgresql.org; Mon, 30 Sep 2019 10:13:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1569838402; bh=0Zyeat1KLJ3RCFEgYFWu/s4tNjB6U9IYuR6UnJiMlRo=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject; b=kwY8PEB93jc8SFlJ9dak7aZcYX3fbkZGYSZXh/MioANSmEhqgbg79ShnHdfkFpsuX6dfC8Dw/BQ1AdY+k7YQFMzufKDZHjhBUY1n9+flHL3FP2Lcio6FXbmRw3cIYu4SWcjlyxSW59CLH7rwmYNtX5dl7bcuPNP6No/pMYVmZTyvzOj51GiqonjG9s1fQeJDatQKNC3jfm1VrQrO0An3p5XVkGuTlZNXqbWjV1tTKFVn7qw/XOllcLE1GRK5i1F/deLv1D4jUaT1p9PSMTsLqIiIkVD5UMCGumhRD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d0pdmmdu87GcT_I3bNvzDqdZwyfqhhnkL Q8bJeP2ZJEeHoGJpbZGbqHJTGykyEa_VOd40kf3ib3Q7sqyksfZ3FllF2a5007c0hDqYvY4A2nEG ZKzJzW8rydkl81HgKXiaELQEKQVQQDBSU2K.fcWUHGDXS8Sw8ZTQc6nCMeqE.CCNoBzJVbAfDSCt vR5GxXUP.zJwwCSLO1uSbM.5RBiQ4bbQQfNsNERvaEUGmrbnNS97Te5ZEM8VV4CfKQte22X.Q8ux SXSuCJISmpouKl2xm9D_mTCDs78N6mssx0p_3HzgN45SuDRPlnWjnJxbVPbk2U2Z_OO2Dbew4 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.ne1.yahoo.com with HTTP; Mon, 30 Sep 2019 10:13:22 +0000 Date: Mon, 30 Sep 2019 10:13:03 +0000 (UTC) From: Alex To: PG Bug reporting form , Dave Cramer Cc: pgsql-bugs@lists.postgresql.org Message-ID: <2007560436.1326832.1569838383795@mail.yahoo.com> In-Reply-To: References: <16028-3b4724da97a51b77@postgresql.org> Subject: Re: BUG #16028: JDBC currentSchema connection parameter not working for text search configuration MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1326831_1038588433.1569838383794" X-Mailer: WebService/1.1.14448 YMailNorrin Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0 Content-Length: 5626 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1326831_1038588433.1569838383794 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Additional info:The original schema was exported using pg_dump (whole db) = and imported using "psql -f".=20 Then I've renamed the schema in PgAdmin(4.13) to "dev" (right click -> Prop= erties -> change name -> Save). If I rename back the schema to original name, and use that name in "current= Schema" param, then everything works correctly. In addition, I don't know if any configuration may override the connection = param "currentSchema" (such as hibernate overwriting "search_path"), but in= my case it should be used as fallback to resolve missing text search confi= guration. On Monday, September 30, 2019, 3:45:48 AM GMT+3, Dave Cramer wrote: =20 =20 Interesting, Thanks for the report. Dave Cramer On Thu, 26 Sep 2019 at 18:16, PG Bug reporting form wrote: The following bug has been logged on the website: Bug reference:=C2=A0 =C2=A0 =C2=A0 16028 Logged by:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cd a Email address:=C2=A0 =C2=A0 =C2=A0 cdalxndr@yahoo.com PostgreSQL version: 10.3 Operating system:=C2=A0 =C2=A0Windows 10 Description:=C2=A0 =C2=A0 =C2=A0 =C2=A0=20 Using a java spring app with connection: jdbc:postgresql://localhost:5433/postgres?currentSchema=3Ddev,public&Applic= ationName=3Dmyapp Schema 'dev' has fts configuration 'en'. Query (debugged PgPreparedStatement): =C2=A0 select * from dev.category where category.language=3D'en' =C2=A0 the param 'en' is registered with oid (paramType) 3734 corresponding= to 'regconfig' type Query results in: ERROR: text search configuration "en" does not exist The same error is shown when running the query in PgAdmin if search_path doesn't contain 'dev' schema. With 'dev' in search_path, the query is ok. I was expecting that 'currentSchema' connection parameter will be used to resolve fts configuration to 'dev' schema. =20 ------=_Part_1326831_1038588433.1569838383794 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
Additional info:
The original schema was exported using pg_dump (whole db) and imported using "psql -f".
Then I've renamed the schema in PgAdmin(4.13) to "dev" (right click -> Properties -> change name -> Save).

If I rename back the schema to original name, and use that name in "currentSchema" param, then everything works correctly.

In addition, I don't know if any configuration may override the connection param "currentSchema" (such as hibernate overwriting "search_path"), but in my case it should be used as fallback to resolve missing text search configuration.

On Monday, September 30, 2019, 3:45:48 AM GMT+3, Dave Cramer <davecramer@gmail.com> wrote:


Interesting,

Thanks for the report.

Dave Cramer


On Thu, 26 Sep 2019 at 18:16, PG Bug reporting form <noreply@postgresql.org> wrote:
The following bug has been logged on the website:

Bug reference:      16028
Logged by:          cd a
Email address:      cdalxndr@yahoo.com
PostgreSQL version: 10.3
Operating system:   Windows 10
Description:       

Using a java spring app with connection:
jdbc:postgresql://localhost:5433/postgres?currentSchema=dev,public&ApplicationName=myapp
Schema 'dev' has fts configuration 'en'.
Query (debugged PgPreparedStatement):
  select * from dev.category where category.language='en'
  the param 'en' is registered with oid (paramType) 3734 corresponding to
'regconfig' type

Query results in: ERROR: text search configuration "en" does not exist

The same error is shown when running the query in PgAdmin if search_path
doesn't contain 'dev' schema. With 'dev' in search_path, the query is ok.
I was expecting that 'currentSchema' connection parameter will be used to
resolve fts configuration to 'dev' schema.

------=_Part_1326831_1038588433.1569838383794--