Ho to install SHA-1 support for PostgreSQL
make; make install start psql and create a utility function: psql -Upostgres template1 -- for Postgres < 9.1:
template1=# \i contrib/pgcrypto/pgcrypto.sql
-- for Postgres >= 9.1:
template1=# CREATE EXTENSION pgcrypto; -- common part:
template1=# CREATE OR REPLACE FUNCTION sha1(varchar) returns text AS '
SELECT encode(digest($1::bytea, ''sha1''), ''hex'')
' LANGUAGE SQL STRICT IMMUTABLE;
Trivia: Adding Linux Swapspace
swapon /swapfile Don't forget to also add the last command (swapon) to the system startup scripts (e.g. in /etc/rc.local).
permlink: _.at: Trivia: Adding Linux Swapspace
Linux Kernel increasingly inefficient
OK, it *does* support numerous plattforms and gazillions of features (almost nobody actually uses btw.). But wouldn't it be better to make these parts optional? Micro-kernel anyone? Would of course collide with the current development model -- but maybe this would also be a good time to rethink that as well.
permlink: _.at: Petabytes
all articles represent the sole opinion of their respective author. all content comes without any warranty for correctnes, despite due diligence.