Re: Timestamp/hstore query?

2021-04-15 Thread Mike Rylander
seful, I think. If your intervals are more complex than date_trunc() can handle then you'll have to get more creative, but that's the basic structure -- normalize the primary key, project the sensor data to make it table-ish, then use regular SQL to pull out what you want. -- Mike Rylander | Resear

Re: Replacing Apache Solr with Postgre Full Text Search?

2020-03-26 Thread Mike Rylander
in Ful Text search regarding those file types? > It can't handle those without some help -- it supports exactly text -- but you can extract the text using other tools. -- Mike Rylander | Executive Director | Equinox Open Library Initiative | phone: 1-877-OPEN-ILS (673-6457) | email: mi...@

Re: Replacing Apache Solr with Postgre Full Text Search?

2020-03-25 Thread Mike Rylander
well. Our main performance issue has to do with all of the stuff outside the records (documents) themselves that have to be taken into account during search. The core full-text search part of our queries is extremely performant, and has only gotten better over the years. [1] http://evergreen-ils.org HT

Re: Watching for view changes

2018-12-20 Thread Mike Rylander
t were modified as a JSON blob, and let the application do whatever needs to be done to react the the changes -- issue other queries, etc. Of course that depends on your application knowing when it's appropriate to NOTIFY, or being able to handle spurious NOTIFYs. HTH, -- Mike Rylander | Exec

Re: Select "todays" timestamps in an index friendly way

2018-10-23 Thread Mike Rylander
org/docs/10/static/datatype-datetime.html on table 8.13, you can use special input values: SELECT * FROM t WHERE ts >= 'today'::timestamp AND ts < 'tomorrow'::timestamp; HTH, -- Mike Rylander | Executive Director | Equinox Open Library Initiative | phone: 1-877-OPEN-ILS (673-6457) | em

Change ON UPDATE behavior of fkey

2018-03-15 Thread Mike Rylander
nged to 'c' directly. So, my question is, will updating pg_constraint "just work" (for, say, new sessions, after forcing clients to reconnect) or would there be a data risk? Thanks in advance, -- Mike Rylander