Re: [GENERAL] Searchable chess positions in a Postgress DB

2012-04-11 Thread Gianni Ciolli
think using the 1-byte char is a fairly good choice; you could pack up your structure in a smaller bit string, but then you add complexity elsewhere and it might be desirable to keep things simple for now. Regards, Dr. Gianni Ciolli - 2ndQuadrant Italia PostgreSQL Training, Services and Support gian

Re: [GENERAL] read-only UNLOGGED tables

2011-03-31 Thread Gianni Ciolli
ed by something like CREATE TABLE mytable_logged AS SELECT * FROM mytable_unlogged; which would not produce WAL: http://developer.postgresql.org/pgdocs/postgres/populate.html#POPULATE-PITR unless of course you are using PITR or replication, in which case you surely want your table to be l

Re: [GENERAL] Query sought with windowing function to weed out dense points

2011-02-16 Thread Gianni Ciolli
WHERE rank = 1; -- query not tested as I don't have postgis available which "feels" more elegant; but you still need a subquery, as window functions are not allowed in the WHERE clause. Cheers, Dr. Gianni Ciolli - 2ndQuadrant Italia PostgreSQL Training, Services and Support gian