Loading...
 
Skip to main content

Features / Usability


Update fails with SQL Error

👻

I'm getting the following error from a document when I hit save :

An error occured in a database query!

Context:
File /tiki-editpage.php
Url /tiki-editpage.php
Query:
update "tiki_pages" set "description"=?, "data"=?, "comment"=?, "lastModif"=?, "version"=?, "user"=?, "ip"=?, "page_size"=? where "pageName"=?
Values:

0

<...data here ...>

The data looks right and sometimes it will save and sometimes it won't. it would be most helpful if the error trap behind the save operation printed out the message from the database eror because at the moment I am purely guessing to try and figure out what this is. My guess is something in the document text is causing SQL to get it wrong. But without adiquate error messages, it's hard to find.

ciao
Derek.

Further debugging releviled this message

Error: ERROR: index row size 3200 exceeds btree maximum, 2713

This sounds to me like some limit being hit in postgres.

👻👻👻👻


Further reading reveils that it a appears to be hitting a document size limit with the postgress gist engine. Anyone have a fix for this ?