6.0.0-alpha10
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
5/15/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#14878] Sequence reset incompatible with PostgreSQL 10+
*
Your Email Address
*
Spam protection
Enter the letters below:
. ,.__..__ .___..__ \./ | || \ _/ [__) | |__||__/./__.| \
Comment
> After upgrading the database from PostgreSQL 9.6 to 11 certain > operations fail when trying to reset a sequence. > > Example to reproduce: > Create a new event in Kronolith raises an error (see attached log). > After refreshing the page the event is created successfully. > > Cause: > Method "resetPkSequence" in file > "pear/Horde/Db/Adapter/Postgresql/Schema.php" executes the following > SQL: > SELECT setval(%s, (SELECT COALESCE(MAX(%s) + (SELECT increment_by > FROM %s), (SELECT min_value FROM %s)) FROM %s), false) > > Sequence column "increment_by" is no longer available in PostgreSQL > 10 and above.
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers