This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
EXTRACT not even trying to work, or maybe I'm crazy (Npgsql + C#)
Post Body

I'm about at my wits end here. Normally to find all the rows with a timestamp (w/o timezone) i use date_trunc but for my current use case i tried extract (example below). It worked perfectly in PGadmin but when I implimented it in c# using Npgsql, suddenly it wouldn't work. the program hung with no output or errors indicating there was a problem. I'm working with large pools of data and need to process them a month at a time so for something like this:

SELECT * FROM (the table) WHERE EXTRACT('month' FROM createdAt) = 10 AND EXTRACT('year' FROM createdAt) = 2023;

to give me everything from October last year is a godsend. Has anybody run into this issue? where the query works in PGadmin but doesn't using Npgsql? I've googled a lot and cant find any similar issue

Author
Account Strength
100%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
8,038
Link Karma
4,168
Comment Karma
3,078
Profile updated: 2 days ago
Posts updated: 2 months ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 months ago