comparison artifact-database/src/main/resources/sql/org-postgresql-driver.properties @ 242:b35d32e507b6

Fix for flys/issue9 artifacts/trunk@1677 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 13 Apr 2011 11:26:53 +0000
parents 202b6ae2fcad
children 33b9cc23ac9b
comparison
equal deleted inserted replaced
241:4253995c970e 242:b35d32e507b6
13 AND CURRENT_TIMESTAMP - last_access > (ttl || ' microseconds')::interval \ 13 AND CURRENT_TIMESTAMP - last_access > (ttl || ' microseconds')::interval \
14 AND id NOT IN (SELECT DISTINCT artifact_id FROM collection_items) \ 14 AND id NOT IN (SELECT DISTINCT artifact_id FROM collection_items) \
15 AND id NOT IN ($LOCKED_IDS$) \ 15 AND id NOT IN ($LOCKED_IDS$) \
16 LIMIT 50 16 LIMIT 50
17 17
18 artifacts.select.gid=SELECT id, last_access, ttl, factory, data FROM artifacts WHERE gid = ?::uuid 18 artifacts.select.gid=SELECT id, ttl, factory, data FROM artifacts WHERE gid = ?::uuid \
19 AND (ttl IS NULL \
20 OR (CURRENT_TIMESTAMP - last_access <= (ttl || ' microseconds')::interval) \
21 OR id IN (SELECT artifact_id FROM collection_items))
19 22
20 artifacts.get.id=SELECT id FROM artifacts WHERE gid = ?::uuid 23 artifacts.get.id=SELECT id FROM artifacts WHERE gid = ?::uuid
21 24
22 artifacts.replace=UPDATE artifacts SET \ 25 artifacts.replace=UPDATE artifacts SET \
23 creation = CURRENT_TIMESTAMP, last_access = CURRENT_TIMESTAMP, \ 26 creation = CURRENT_TIMESTAMP, last_access = CURRENT_TIMESTAMP, \

http://dive4elements.wald.intevation.org