
SQL editor, scheduler, and pipelines in one native Mac app. Daily notes for people who write queries.
Joined October 2026
- Tweets818
- Following172
- Followers50
- Likes1K
Pinned Tweet
Stop reading schema diagrams.
We pointed QueryFlow at a public MySQL database nobody on the team had ever opened. 64 tables. No docs.
Asked "what's in this database." It explained the schema. Asked for a query with a join. It wrote it, explained the join, ran it. Rows on screen in about a minute.
Then hit Watch this and it pings Slack or email when the row count or a value changes. Or schedule it to land in S3, SFTP or your inbox every morning.
Watch: youtu.be/x2gxwMklboU
Try it free for 14 days: getqueryflow.com/?utm_source…
An ALTER TABLE waiting for its lock makes new queries on that table wait too, even plain SELECTs.
A long read holds the table, the ALTER queues behind it, and everything else queues behind the ALTER. In Postgres, cap the wait first:
SET lock_timeout = '5s';
2
1
30
cap the wait before your next ALTER in our SQL editor, free for 14 days: getqueryflow.com/?utm_source…
4
BigQuery cross-cloud connections went GA on Nov 25. Query S3 or Azure files through an external table from any BigQuery region.
Worth checking: cross-cloud caching is off by default. Turn it on and repeat reads hit a cache in the connection's region.
getqueryflow.com/?utm_source…
2
35
QueryFlow retweeted
Amazon Redshift extension for DuckDB brings warehouse scale to local SQL
Amazon Redshift now offers the Redshift extension for DuckDB, an open source extension that lets you run Amazon Redshift SQL from a local DuckDB session. Query results come back as DuckDB relations, so y...
Tuesday 60-second challenge. Four values: 10, 20, 30, 40. What do percentile_cont(0.5) and percentile_disc(0.5) return in Postgres?
Answer: 25 and 20. cont interpolates between the two middle values. disc returns the first real value at or past the halfway mark.
8
Need a rough row count on a huge Postgres table? count(*) has to count every row. This reads the planner's estimate instead:
SELECT reltuples::bigint FROM pg_class WHERE relname = 'orders';
The catch: it's -1 until the table has been vacuumed or analyzed.
8
QueryFlow retweeted
During a Postgres migration the disk can fill up with WAL, the log of every change. A replication slot keeps that log until the new database reads it, and during the hours long initial copy it reads nothing, so cleanup stops. Raise max_slot_wal_keep_size before you start.
QueryFlow retweeted
A startup kept BigQuery in prod and pointed dbt at DuckDB for CI. Result: 639 s of integration tests per merge became 46 s. The one trap is timestamps. Set TZ=UTC or DuckDB's local-zone default will disagree with BigQuery. Easy pattern to copy.
duckdb.org/2026/11/24/sprout…
Put the rules in the table, not only in the app.
A NOT NULL, CHECK, or foreign key is enforced on every write: the app, the import script, and the one-off fix someone runs at 5 PM on a Friday.
App validation only covers the app.
5
EXPLAIN ANALYZE doesn't just plan your DELETE. It runs it, and those rows are gone. To see the real plan and keep your data, wrap it in a transaction:
BEGIN;
EXPLAIN ANALYZE DELETE FROM orders WHERE status = 'test';
ROLLBACK;
Plain EXPLAIN only plans, so it's safe on its own.
5
Monday question: which database error message do you wish just said what it meant?
Ours is "must appear in the GROUP BY clause or be used in an aggregate function," which usually means one column in your SELECT never made it into the GROUP BY. What's yours?
1
13
tell us yours, then try our SQL editor, free for 14 days: getqueryflow.com/?utm_source…
15
QueryFlow retweeted
Supplier CSVs have the same headers in a different order? DuckDB can align them by name:
SELECT * FROM read_csv('quotes/*.csv', header=true, union_by_name=true);
Standardize the headers first. This won't tell you whether price and unit_price mean the same thing, or reconcile USD with EUR. Name-based alignment also uses more memory.
Docs reviewed; not tested.
github.com/duckdb/duckdb
#GitHub #DataTools #InternationalTrade
QueryFlow retweeted
Cloud ops metadata as Iceberg tables means "which buckets grew last month?" becomes a SQL query instead of console clicks.
The real win is joins across services, like AWS's own example: Glue tables no Athena query has read in 90 days. Databricks system tables already do this for the lakehouse, cost data included. teapaw.org/awswhatsnew/status/212…
A query stuck for ten minutes may not be working at all. It could be waiting on a lock. In Postgres, this shows who's stuck and who's blocking:
SELECT pid, pg_blocking_pids(pid) AS blocked_by, left(query, 50)
FROM pg_stat_activity
WHERE cardinality(pg_blocking_pids(pid)) > 0;

ALT Find the blocker. A Postgres query on pg_stat_activity that selects pid, pg_blocking_pids(pid) as blocked_by, and the first 50 characters of the query, filtered to sessions where pg_blocking_pids is not empty. Example result: a waiting UPDATE orders SET status = 'void', blocked by the session holding the lock.
1
9
keep that blocker query handy in our SQL editor, free for 14 days: getqueryflow.com/?utm_source…
8
QueryFlow retweeted
Monday brings #AI
Before trusting AI-written ad revenue SQL, test two impressions worth 1¢ each, where one matches two tracking events. The right total is 2¢. A plain SUM after the join gives 3¢, and SUM(DISTINCT revenue) gives 1¢.
QueryFlow retweeted
Postgres tip: if CREATE INDEX CONCURRENTLY fails, it leaves an INVALID index behind. Queries ignore it, but every write still pays to keep it updated. A retry with IF NOT EXISTS just sees the name and skips. Drop it and run it again.
BigQuery's billing controls went GA on Nov 23. One turns off on-demand billing, so any query without an assigned reservation fails:
ALTER ORGANIZATION SET OPTIONS (
`region-us.disable_on_demand_billing` = true);
Find the unreserved projects first, or Monday's reports will.
1
7
run your BigQuery checks from our SQL editor, free for 14 days: getqueryflow.com/?utm_source…
5










