<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Nifi DBCPConnectionPool  service not setting schema in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-DBCPConnectionPool-service-not-setting-schema/m-p/412324#M253377</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I am running into a problem with my DBCPConnectionPool service in Nifi and am hoping that someone has some experience with this.&amp;nbsp;I'm using Nifi 2.0.0-M2.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;My current Database Connection URL is&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;jdbc:&lt;A href="postgresql://myurl:5432/mydatabase?currentSchema=public&amp;amp;stringtype=unspecified" target="_blank" rel="noopener noreferrer"&gt;postgresql://myurl:5432/mydatabase?currentSchema=public&amp;amp;amp;stringtype=unspecified&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;This works great with no issues. However, I want to add another schema in there so I don't have to specify the new schema in my queries throughout all my nifi flows. For example, I was hoping this would work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;jdbc:&lt;/FONT&gt;&lt;A class="c-link" href="postgresql://myurl:5432/mydatabase?currentSchema=myschema,public&amp;amp;stringtype=unspecified" target="_blank" rel="noopener noreferrer"&gt;&lt;FONT face="courier new,courier"&gt;postgresql://myurl:5432/mydatabase?currentSchema=myschema,public&amp;amp;amp;stringtype=unspecified&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&lt;SPAN&gt;But when I do a query like "&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;select * from mytable"&lt;/FONT&gt;&amp;nbsp;with ExecuteSQL&lt;SPAN&gt;, I get an error:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;org.postgresql.util.PSQLException: ERROR: relation "mytable" does not exist&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I change the query to "&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;select * from myschema.mytable"&lt;/FONT&gt;&lt;SPAN&gt;, it works.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Chatgpt recommended I try this, but it also didn't work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;jdbc:&lt;A class="c-link" href="postgresql://myurl:5432/mydatabase?options=-c%20search_path=myschema,public&amp;amp;stringtype=unspecified" target="_blank" rel="noopener noreferrer"&gt;postgresql://myurl:5432/mydatabase?options=-c%20search_path=myschema,public&amp;amp;amp;stringtype=unspecified&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone been able to successfully specify a different schema other than just&amp;nbsp;&lt;/SPAN&gt;public&lt;SPAN&gt;? I would just include the schema name in all my queries (which works), but we are going to do a separate prod and dev instance and I don't want to have to change all my queries depending on whether I'm using&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;myschema&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;myschema-dev&lt;/FONT&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Sep 2025 19:29:58 GMT</pubDate>
    <dc:creator>ShellyIsGolden</dc:creator>
    <dc:date>2025-09-10T19:29:58Z</dc:date>
    <item>
      <title>Nifi DBCPConnectionPool  service not setting schema</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-DBCPConnectionPool-service-not-setting-schema/m-p/412324#M253377</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am running into a problem with my DBCPConnectionPool service in Nifi and am hoping that someone has some experience with this.&amp;nbsp;I'm using Nifi 2.0.0-M2.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;My current Database Connection URL is&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;jdbc:&lt;A href="postgresql://myurl:5432/mydatabase?currentSchema=public&amp;amp;stringtype=unspecified" target="_blank" rel="noopener noreferrer"&gt;postgresql://myurl:5432/mydatabase?currentSchema=public&amp;amp;amp;stringtype=unspecified&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;This works great with no issues. However, I want to add another schema in there so I don't have to specify the new schema in my queries throughout all my nifi flows. For example, I was hoping this would work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;jdbc:&lt;/FONT&gt;&lt;A class="c-link" href="postgresql://myurl:5432/mydatabase?currentSchema=myschema,public&amp;amp;stringtype=unspecified" target="_blank" rel="noopener noreferrer"&gt;&lt;FONT face="courier new,courier"&gt;postgresql://myurl:5432/mydatabase?currentSchema=myschema,public&amp;amp;amp;stringtype=unspecified&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/A&gt;&lt;SPAN&gt;But when I do a query like "&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;select * from mytable"&lt;/FONT&gt;&amp;nbsp;with ExecuteSQL&lt;SPAN&gt;, I get an error:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;org.postgresql.util.PSQLException: ERROR: relation "mytable" does not exist&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I change the query to "&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;select * from myschema.mytable"&lt;/FONT&gt;&lt;SPAN&gt;, it works.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Chatgpt recommended I try this, but it also didn't work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;jdbc:&lt;A class="c-link" href="postgresql://myurl:5432/mydatabase?options=-c%20search_path=myschema,public&amp;amp;stringtype=unspecified" target="_blank" rel="noopener noreferrer"&gt;postgresql://myurl:5432/mydatabase?options=-c%20search_path=myschema,public&amp;amp;amp;stringtype=unspecified&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Has anyone been able to successfully specify a different schema other than just&amp;nbsp;&lt;/SPAN&gt;public&lt;SPAN&gt;? I would just include the schema name in all my queries (which works), but we are going to do a separate prod and dev instance and I don't want to have to change all my queries depending on whether I'm using&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;myschema&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;myschema-dev&lt;/FONT&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2025 19:29:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-DBCPConnectionPool-service-not-setting-schema/m-p/412324#M253377</guid>
      <dc:creator>ShellyIsGolden</dc:creator>
      <dc:date>2025-09-10T19:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi DBCPConnectionPool  service not setting schema</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-DBCPConnectionPool-service-not-setting-schema/m-p/412337#M253387</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111116"&gt;@ShellyIsGolden&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad to see you in our community. Welcome!&lt;/P&gt;&lt;P&gt;ChatGPT was not that wrong (&lt;span class="lia-unicode-emoji" title=":grinning_squinting_face:"&gt;😆&lt;/span&gt;), in fact that makes sense.&amp;nbsp;&lt;BR /&gt;The PostgreSQL documentation refers that method as possible:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;String&lt;/SPAN&gt; &lt;SPAN class="n"&gt;url&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"jdbc:postgresql://localhost:5432/postgres?options=-c%20search_path=test,public,pg_catalog%20-c%20statement_timeout=90000"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;;&lt;/SPAN&gt; &lt;BR /&gt;&lt;A href="https://jdbc.postgresql.org/documentation/use/#connection-parameters" target="_blank" rel="noopener"&gt;https://jdbc.postgresql.org/documentation/use/#connection-parameters&lt;/A&gt; &lt;/PRE&gt;&lt;P&gt;Have you tested the JDBC connection outside of NiFi?&amp;nbsp;&lt;BR /&gt;Maybe with psql command like this:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;psql -d postgresql://myurl:5432/mydatabase?options=-c%20search_path=myschema,public&amp;amp;stringtype=unspecified&lt;/PRE&gt;&lt;P&gt;Also, check with your PG team to see if that connect string is possible and test more on that side.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 23:33:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-DBCPConnectionPool-service-not-setting-schema/m-p/412337#M253387</guid>
      <dc:creator>vafs</dc:creator>
      <dc:date>2025-09-11T23:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi DBCPConnectionPool  service not setting schema</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-DBCPConnectionPool-service-not-setting-schema/m-p/412366#M253406</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/111116"&gt;@ShellyIsGolden&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;What you describe here sounds like the exact use case for using NiFi's &lt;A href="https://nifi.apache.org/nifi-docs/user-guide.html#Parameters" target="_self"&gt;parameter&lt;/A&gt; contexts.&amp;nbsp; Parameters can be used in any NiFi component property.&amp;nbsp; They make it easy to build a dataflow in your dev environment and then move that dataflow to test or prod environments that have the same parameter contexts but with different values.&amp;nbsp; This even works when using a shared NiFi-Registry to version control your ready dataflows for another environment.&lt;BR /&gt;&lt;BR /&gt;Lets say you create a "&lt;A href="https://nifi.apache.org/nifi-docs/user-guide.html#parameter-contexts" target="_self"&gt;Parameter Context&lt;/A&gt;" and associate that created parameter context with a Process Group(s). Now you can configure a property in a processor for example and click on "convert to parameter" icon to convert that value into a parameter within yoru parameter context.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1757957258591.png" style="width: 369px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46322i870D5F7177F98561/image-dimensions/369x147?v=v2" width="369" height="147" role="button" title="MattWho_0-1757957258591.png" alt="MattWho_0-1757957258591.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Lets say you create a Parameter context with name "PostgresQL parameters".&lt;BR /&gt;Then you can configure your Process Group (PG) to use that parameter context:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_1-1757957502379.png" style="width: 626px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/46323i7827D21A5F7A2602/image-dimensions/626x144?v=v2" width="626" height="144" role="button" title="MattWho_1-1757957502379.png" alt="MattWho_1-1757957502379.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now you can configure/convert your component properties that are unique per NiFi deployment environment to using a parameter.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Let's say you are ready to move that flow to another environment like prod.&amp;nbsp; So you version control that PG on dev to NiFi-Registry.&amp;nbsp; Then on Prod you connect to that same NiFi-Registry and import that dataflow.&amp;nbsp; When that flow is loaded in Prod, if a parameter context with the exact same name "PostgresQL parameters" already exists, that imported flow will use that parameter context's values.&amp;nbsp; This eliminates the need to manage these configuration all over the place in yoru dataflows.&amp;nbsp; &amp;nbsp;You can also open your parameter context and edit a values and NiFi will take care of stopping and starting all the affected components.&lt;/P&gt;&lt;P&gt;Please help our community grow. If you found&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;any&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;of the suggestions/solutions provided helped you with solving your issue or answering your question, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on&amp;nbsp;&lt;STRONG&gt;one or more&lt;/STRONG&gt;&amp;nbsp;of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 17:41:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-DBCPConnectionPool-service-not-setting-schema/m-p/412366#M253406</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2025-09-15T17:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi DBCPConnectionPool  service not setting schema</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-DBCPConnectionPool-service-not-setting-schema/m-p/412367#M253407</link>
      <description>&lt;P&gt;Thank you for replying, that's the exact solution I eventually settled on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;BR /&gt;Shelly&lt;/P&gt;</description>
      <pubDate>Mon, 15 Sep 2025 17:55:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-DBCPConnectionPool-service-not-setting-schema/m-p/412367#M253407</guid>
      <dc:creator>ShellyIsGolden</dc:creator>
      <dc:date>2025-09-15T17:55:10Z</dc:date>
    </item>
  </channel>
</rss>

