Better HN
topnewbestaskshowjobs
Log inSign up

qwertydog

11 karma · joined Sep 9, 2018 (8y ago) · 7 submissions

Submissions

comment 8mo ago · link · parent

Great post - thanks. I think the columns in the index you suggested in the pre-pg12 section are in the wrong order (that index would get used)

comment 1y ago · link · parent

SQL NULL is also coerced to different boolean values depending on context e.g. in a WHERE clause NULL is coerced to false, whereas in a CHECK constraint NULL is coerced to true

https://dbfiddle.uk/C5JqMP8O

comment 2y ago · link · parent

Just saw this. I see you've already pushed a fix on GitHub thanks. I can't see object ID's being included in the script, so I assume multiple objects with similar names will all be treated as the "same" object e.g. https://dbfiddle.uk/O_yZLjpN

comment 2y ago · link · parent

Ah sorry my bad, I should have read the full script. The script fails though if object names contain double quotes e.g. https://dbfiddle.uk/y-C6Da07

comment 2y ago · link · parent

Just checked out the MS SQL script. I believe it's vulnerable to SQL injection via table/column/view/index/schema names (however unlikely that may be). You might want a disclaimer not to run the script with object names that could be user provided (especially as a privileged user)

comment 7y ago · link · parent

I think the main issue is the play store is off limits i.e. no existing android apps