Open
Description
Although this could feasibly happen on any indexed field, when running a harvest against the NDBC SOS service, I ran into an exception of:
<ows:Exception exceptionCode="NoApplicableCode" locator="source">
<ows:ExceptionText>Harvest (insert) failed: ERROR: index row size
3956
exceeds maximum 2712 for index "ix_records_operateson"
HINT: Values larger than 1/3 of a buffer page cannot be indexed.
Consider a function index of an MD5 hash of the value, or use full text
indexing.
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
My source xml to direct the CSW to harvest from the SOS:
<?xml version="1.0" encoding="UTF-8"?>
<Harvest xmlns="http://www.opengis.net/cat/csw/2.0.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/cat/csw/2.0.2
http://schemas.opengis.net/csw/2.0.2/CSW-publication.xsd" service="CSW"
version="2.0.2">
<Source>http://sdf.ndbc.noaa.gov/sos/server.php</Source>
<ResourceType>http://www.opengis.net/sos/1.0</ResourceType>
</Harvest>
The "operateson" field was extremely large from the SOS server, it was an entry of all the stations being served out from the service.
Tom suggested commenting out line 678 in metadata.py as a temporary workaround.