<?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>topic Postgresql Replication of Geodatabase error in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/postgresql-replication-of-geodatabase-error/m-p/216218#M12392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using Postgresql (9.2) database replication to distribute the load between a master and a slave. For a variety of reasons, we thought replicating at the Postgresql level instead of using ArcGIS's Geodatabase replication (we have a hot stand-by that we're replicating using both streaming and log-shipping) would work better for us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the limitations of using a postgresql replication in this way is that the slave is read-only, which we thought would be fine. We would make all the changes on the master and they would be pushed to the slave. And that is working great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that users who connect to the slave often receive this error (ERROR: cannot execute nextval() in a read-only transaction::SQL state: 25006) while do a spatial selection, either by doing "Select by Location" or using the Select Tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; [ATTACH=CONFIG]33564[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error is sensitive to how large of a geographic area the user is selecting--smaller areas work fine, larger areas receive the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found that if I access the same data via either a View or Query Layer (Select * from &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;featureclass&lt;/SPAN&gt;&lt;SPAN&gt;) , I do not receive the error at all so that is a possible work-around. However, both of these are 3-4 times slower than just accessing the feature class directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a support request working it's way through "channels" but wondered if the collective wisdom here might have any suggestions.&amp;nbsp; Thanks for any ideas!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Database servers: Windows 2008 r2, Postgresql 9.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Clients: ArcGIS 10.2.1, Windows 7&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 May 2014 16:51:47 GMT</pubDate>
    <dc:creator>MatthewRantala</dc:creator>
    <dc:date>2014-05-02T16:51:47Z</dc:date>
    <item>
      <title>Postgresql Replication of Geodatabase error</title>
      <link>https://community.esri.com/t5/data-management-questions/postgresql-replication-of-geodatabase-error/m-p/216218#M12392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using Postgresql (9.2) database replication to distribute the load between a master and a slave. For a variety of reasons, we thought replicating at the Postgresql level instead of using ArcGIS's Geodatabase replication (we have a hot stand-by that we're replicating using both streaming and log-shipping) would work better for us.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One of the limitations of using a postgresql replication in this way is that the slave is read-only, which we thought would be fine. We would make all the changes on the master and they would be pushed to the slave. And that is working great.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that users who connect to the slave often receive this error (ERROR: cannot execute nextval() in a read-only transaction::SQL state: 25006) while do a spatial selection, either by doing "Select by Location" or using the Select Tool. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; [ATTACH=CONFIG]33564[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error is sensitive to how large of a geographic area the user is selecting--smaller areas work fine, larger areas receive the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have found that if I access the same data via either a View or Query Layer (Select * from &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;featureclass&lt;/SPAN&gt;&lt;SPAN&gt;) , I do not receive the error at all so that is a possible work-around. However, both of these are 3-4 times slower than just accessing the feature class directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've got a support request working it's way through "channels" but wondered if the collective wisdom here might have any suggestions.&amp;nbsp; Thanks for any ideas!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Database servers: Windows 2008 r2, Postgresql 9.2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Clients: ArcGIS 10.2.1, Windows 7&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 16:51:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/postgresql-replication-of-geodatabase-error/m-p/216218#M12392</guid>
      <dc:creator>MatthewRantala</dc:creator>
      <dc:date>2014-05-02T16:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Postgresql Replication of Geodatabase error</title>
      <link>https://community.esri.com/t5/data-management-questions/postgresql-replication-of-geodatabase-error/m-p/216219#M12393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are almost certainly hitting an issue with the use of ArcSDE logfiles in a read-only database&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(logfiles implement a selection set to "remember" which rows have been selected).&amp;nbsp; I doubt &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;there's any way around this within the enterprise geodatabase data model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 May 2014 17:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/postgresql-replication-of-geodatabase-error/m-p/216219#M12393</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-05-02T17:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Postgresql Replication of Geodatabase error</title>
      <link>https://community.esri.com/t5/data-management-questions/postgresql-replication-of-geodatabase-error/m-p/216220#M12394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks, Vince.&amp;nbsp; It was surprising to me, though, that we don't experience the same problem when using either a View or Query Layer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 11:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/postgresql-replication-of-geodatabase-error/m-p/216220#M12394</guid>
      <dc:creator>MatthewRantala</dc:creator>
      <dc:date>2014-05-05T11:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Postgresql Replication of Geodatabase error</title>
      <link>https://community.esri.com/t5/data-management-questions/postgresql-replication-of-geodatabase-error/m-p/216221#M12395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Query Layers are direct read from the database, and do not directly utilize geodatabase &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;functionality (like logfiles).&amp;nbsp; The performance benefit from ArcSDE is partially from using&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geodatabase functionality, like storing the envelope and not using the spatial-first query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when it wouldn't be efficient.&amp;nbsp; Unfortunately, you can't have it both ways.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 May 2014 16:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/postgresql-replication-of-geodatabase-error/m-p/216221#M12395</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2014-05-05T16:21:34Z</dc:date>
    </item>
  </channel>
</rss>

