Index: openacs-4/packages/news-aggregator/tcl/aggregator-procs-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/news-aggregator/tcl/aggregator-procs-postgresql.xql,v diff -u -r1.6 -r1.7 --- openacs-4/packages/news-aggregator/tcl/aggregator-procs-postgresql.xql 18 Jul 2018 17:04:31 -0000 1.6 +++ openacs-4/packages/news-aggregator/tcl/aggregator-procs-postgresql.xql 5 Oct 2021 11:51:45 -0000 1.7 @@ -3,65 +3,6 @@ postgresql7.1 - - - select s.source_id, - s.link, - s.description, - s.title, - to_char(i.creation_date, 'YYYY-MM-DD HH24:MI:SS') as last_scanned, - to_char(i.creation_date, 'YYYY-MM-DD HH24') as sort_date, - s.feed_url, - i.item_id, - i.title as item_title, - i.link as item_link, - i.description as item_description, - i.content_encoded, - i.guid as item_guid, - i.original_guid as item_original_guid, - i.permalink_p as item_permalink_p, - i.author as item_author, - to_char(i.pub_date at time zone 'UTC', 'YYYY-MM-DD HH24:MI:SS') as item_pub_date, - s.last_modified - from ( - na_aggregators a join - na_subscriptions su on (a.aggregator_id = su.aggregator_id) - ) join - na_items i on (su.source_id = i.source_id) - join na_sources s on (i.source_id = s.source_id) - where a.package_id = :package_id - and a.aggregator_id = :aggregator_id - $items_purges - order by i.item_id desc - limit $sql_limit - - - - - - and ((i.item_id > coalesce(a.aggregator_bottom, 0)) or - (i.item_id in (select item_id from na_saved_items - where aggregator_id = :aggregator_id))) - - - - - - select - feed_url, - link, - title, - description - from - na_sources s, - na_subscriptions su - where - s.source_id = su.source_id - and su.aggregator_id = :aggregator_id - order by lower(title) - - - select na_aggregator__delete (