Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

patch updates to crawler fetcher #1

Open
wants to merge 3 commits into
base: cfa-main-1
Choose a base branch
from

Conversation

thepsalmist
Copy link

Modify the query to insert into feeds_stories_map, and add logging.
The where not exists check prevents duplicates assuming a partitioned table, but query to check if feed_stories_map is partitioned returns False

SELECT table_name, pg_get_expr(partrelid, relid) AS partition_expression FROM pg_partitioned_table JOIN pg_class ON pg_class.oid = partrelid JOIN pg_namespace ON pg_namespace.oid = relnamespace WHERE table_name = 'feeds_stories_map_p' AND nspname = 'public';
returns 0 rows,

The query update solves the Invalid query error

Invalid query: there is no unique or exclusion constraint matching the ON CONFLICT specification

@thepsalmist thepsalmist marked this pull request as ready for review February 20, 2024 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant