<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Schema configuration works partially in jsreport-postgres-store extension]]></title><description><![CDATA[<p>Hi everyone,</p>
<p>I'm using jsreport with the jsreport-postgres-store extension to store my templates in a PostgreSQL database. My goal is to keep all jsreport-related tables within a separate schema (named <code>pdf_template</code>) rather than the default <code>public</code> schema.</p>
<p>Here is the relevant part of my <code>jsreport.config.json</code>:</p>
<pre><code class="language-json">{
  &quot;httpPort&quot;: 5500,
  &quot;store&quot;: {
    &quot;provider&quot;: &quot;postgres&quot;
  },
  &quot;blobStorage&quot;: {
    &quot;provider&quot;: &quot;postgres&quot;
  },
  &quot;reportTimeout&quot;: 600000,
  &quot;workers&quot;: {
    &quot;numberOfWorkers&quot;: 2
  },
  &quot;extensions&quot;: { 
    &quot;postgres-store&quot;: {
      &quot;host&quot;: &quot;localhost&quot;,
      &quot;port&quot;: 5432,
      &quot;database&quot;: &quot;report&quot;, 
      &quot;user&quot;: &quot;postgres&quot;,
      &quot;password&quot;: &quot;postgres&quot;,
      &quot;schema&quot;: &quot;pdf_template&quot;,
      &quot;prefix&quot;: &quot;jsreport_&quot;,
      &quot;schemaCreation&quot;: true,
      &quot;ssl&quot;: false
    }
  }
}
</code></pre>
<p>I noticed that while most tables are created in the <code>pdf_template</code> schema as expected, the table for blob storage (<code>jsreport_blob</code>) ends up in the public schema.</p>
<p>I looked into the jsreport source code and saw that it uses <code>pg-promise</code> for PostgreSQL connections, and it appears that the schema parameter is passed on correctly for most of the queries. However, it seems like the blob storage table isn’t respecting the schema setting.</p>
<p><img src="/uploads/files/1738627399561-screenshot_3.png" alt="0_1738627398254_Screenshot_3.png" class="img-responsive img-markdown" /></p>
<p>I'm using <code>jsreport</code> and <code>jsreport-postgres-store</code> latest versions.</p>
<p>Are there any workarounds or fixes for it? Any insights or suggestions would be greatly appreciated!</p>
<p>Thanks in advance for your help.</p>
]]></description><link>https://forum.jsreport.net/topic/3397/schema-configuration-works-partially-in-jsreport-postgres-store-extension</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 04:51:07 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/3397.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 04 Feb 2025 00:04:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Schema configuration works partially in jsreport-postgres-store extension on Invalid Date]]></title><description><![CDATA[<p>Hi everyone,</p>
<p>I'm using jsreport with the jsreport-postgres-store extension to store my templates in a PostgreSQL database. My goal is to keep all jsreport-related tables within a separate schema (named <code>pdf_template</code>) rather than the default <code>public</code> schema.</p>
<p>Here is the relevant part of my <code>jsreport.config.json</code>:</p>
<pre><code class="language-json">{
  &quot;httpPort&quot;: 5500,
  &quot;store&quot;: {
    &quot;provider&quot;: &quot;postgres&quot;
  },
  &quot;blobStorage&quot;: {
    &quot;provider&quot;: &quot;postgres&quot;
  },
  &quot;reportTimeout&quot;: 600000,
  &quot;workers&quot;: {
    &quot;numberOfWorkers&quot;: 2
  },
  &quot;extensions&quot;: { 
    &quot;postgres-store&quot;: {
      &quot;host&quot;: &quot;localhost&quot;,
      &quot;port&quot;: 5432,
      &quot;database&quot;: &quot;report&quot;, 
      &quot;user&quot;: &quot;postgres&quot;,
      &quot;password&quot;: &quot;postgres&quot;,
      &quot;schema&quot;: &quot;pdf_template&quot;,
      &quot;prefix&quot;: &quot;jsreport_&quot;,
      &quot;schemaCreation&quot;: true,
      &quot;ssl&quot;: false
    }
  }
}
</code></pre>
<p>I noticed that while most tables are created in the <code>pdf_template</code> schema as expected, the table for blob storage (<code>jsreport_blob</code>) ends up in the public schema.</p>
<p>I looked into the jsreport source code and saw that it uses <code>pg-promise</code> for PostgreSQL connections, and it appears that the schema parameter is passed on correctly for most of the queries. However, it seems like the blob storage table isn’t respecting the schema setting.</p>
<p><img src="/uploads/files/1738627399561-screenshot_3.png" alt="0_1738627398254_Screenshot_3.png" class="img-responsive img-markdown" /></p>
<p>I'm using <code>jsreport</code> and <code>jsreport-postgres-store</code> latest versions.</p>
<p>Are there any workarounds or fixes for it? Any insights or suggestions would be greatly appreciated!</p>
<p>Thanks in advance for your help.</p>
]]></description><link>https://forum.jsreport.net/post/14364</link><guid isPermaLink="true">https://forum.jsreport.net/post/14364</guid><dc:creator><![CDATA[hotaru-ritsuki]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Schema configuration works partially in jsreport-postgres-store extension on Invalid Date]]></title><description><![CDATA[<p>Thank you for the bug report. I've now pushed the fix to the master.  We should ship it during the next few weeks along with other improvements like automatic index creations.</p>
]]></description><link>https://forum.jsreport.net/post/14367</link><guid isPermaLink="true">https://forum.jsreport.net/post/14367</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>