Script to replace string with sed
Here is a short script to replace strings with sed easily written in bash. #!/bin/bash #Replace string in file of given extension #argument 1, extension type #argument 2, old string #argument 3, new...
View ArticleSearch a string in selected files
Here is a short script/memo to find strings inside given file. The script is assumed to be called strfind. It is written in bash. Here is the spec of this script. michael@boheme:~/bin $ strfind ?...
View ArticlePostgres feature highlight: hstore
hstore is a PostgreSQL contrib module in core code for a pretty long time. Its code is located in contrib/hstore in source folder. It is particularly useful to store sets of key/value in a single table...
View ArticlePostgres feature highlight: pg_buffercache
pg_buffercache is a PostgreSQL contrib module allowing to get an instant relation-based view of the shared buffer usage by querying the wanted server. This can be pretty useful for performance analysis...
View ArticleHooks in Postgres: super-superuser restrictions
PostgreSQL extensibility is awesome. With things like extensions or custom worker backgrounds, there are many ways for a PostgreSQL developer to create modules without having to touch a single line of...
View Article