Something went wrong on our end
GIN index uses to find posts by tag
1 unresolved thread
1 unresolved thread
Compare changes
Files
2- Marcin authored
DROP FUNCTION if exists process_hive_post_operation(character varying,character varying,character varying,character varying,timestamp without time zone,timestamp without time zone)
@@ -7,7 +34,9 @@ CREATE OR REPLACE FUNCTION process_hive_post_operation(
@@ -7,7 +34,9 @@ CREATE OR REPLACE FUNCTION process_hive_post_operation(
RETURNS TABLE (is_new_post boolean, id hive_posts.id%TYPE, author_id hive_posts.author_id%TYPE, permlink_id hive_posts.permlink_id%TYPE,
post_category hive_category_data.category%TYPE, parent_id hive_posts.parent_id%TYPE, community_id hive_posts.community_id%TYPE,
@@ -28,7 +57,9 @@ if _parent_author != '' THEN
@@ -28,7 +57,9 @@ if _parent_author != '' THEN
author_id, permlink_id, created_at, updated_at, sc_hot, sc_trend, active, payout_at, cashout_time, counter_deleted, block_num, block_num_created)
@@ -74,7 +105,9 @@ ELSE
@@ -74,7 +105,9 @@ ELSE
author_id, permlink_id, created_at, updated_at, sc_hot, sc_trend, active, payout_at, cashout_time, counter_deleted, block_num, block_num_created)
@@ -90,8 +123,12 @@ ELSE
@@ -90,8 +123,12 @@ ELSE
_date AS active, (_date + INTERVAL '7 days') AS payout_at, (_date + INTERVAL '7 days') AS cashout_time, 0
@@ -100,7 +137,8 @@ ELSE
@@ -100,7 +137,8 @@ ELSE
RETURNING (xmax = 0) as is_new_post, hp.id, hp.author_id, hp.permlink_id, _parent_permlink as post_category, hp.parent_id, hp.community_id, hp.is_valid, hp.is_muted, hp.depth
@@ -138,29 +176,3 @@ BEGIN
@@ -138,29 +176,3 @@ BEGIN