Archive for the 'unix' Category
December 7th, 2011
On dumping and restoring PostgreSQL databases, there may be the case for restoring selected tables from a global db dump.
For this to happen one needs to have the right options when dumping the data.
pg_dump
$ pg_dump -Fc -U username database_name > db_dump
Now, we have a “restore customizable” compressed dump of the database.
From the postgres documentation:
-F format
–format=format
Selects […]
posted by pedro mg at 6:42 pm
& filed under linux, ubuntu, unix, postgres, postgresql, database | 2 Comments »
December 2nd, 2011
Needed to convert a client Microsoft SQLSERVER database to our PostgreSQL database server.
Lots of tables, severall Gigabytes of data.
In Windows:
open the SQL Server administration console for the databae and do a DIR > tables.txt to get a file with all the table names;
remove all the tables you will not be needing from the file;
now to […]
posted by pedro mg at 1:31 am
& filed under linux, shell, windows, unix, postgres, postgresql, database | No Comments »
October 13th, 2011
“Ritchie was best known as the creator of the C programming language and a key developer of the Unix operating system, and as co-author of the definitive book on C, The C Programming Language, commonly referred to as K&R (in reference to the authors Kernighan and Ritchie).”
Farewell Dennis Ritchie, your work changed my life.
C | […]
posted by pedro mg at 9:06 pm
& filed under tech, code, c, unix | No Comments »
March 10th, 2010
Apple OSX Snow Leopard
System Version: Mac OS X 10.6.2
Kernel Version: Darwin 10.2.0
Install notes for PosgreSQL 8.4 install using the great
Homebrew by Adam Vandenberg.
Run the author’s installation script, and that’s it. Try:
$ brew help
$ brew search postgresql
$ sudo brew install postgresql
==> Summary
/usr/local/Cellar/postgresql/8.4.2: 2297 files, 31M, built in 3.3 minutes
$ brew info postgresql
postgresql 8.4.2
My advice ? Use Homebrew. True […]
posted by pedro mg at 11:15 am
& filed under , tech, apple, ruby, code, git, github, gist, osx, unix, postgres, postgresql, datamapper, database, dbms | 5 Comments »
November 23rd, 2009
Last saturday the local Linux group, PortoLinux had a meeting at the engineering faculty of Porto University to discuss about usage of diferent SCM’s.
Main systems covered, centralized vs distributed:
- Subversion
- Git
It was a good tech event, spent a good time there.
Some photos here.
posted by pedro mg at 4:31 pm
& filed under tech, log, linux, code, open source, git, github, unix | No Comments »