-
Archives
- June 2026
- May 2026
- April 2026
- November 2025
- December 2024
- November 2024
- June 2024
- September 2023
- March 2023
- August 2022
- April 2022
- September 2021
- September 2020
- March 2019
- March 2018
- June 2017
- May 2017
- November 2016
- September 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- April 2015
- December 2014
- October 2014
- September 2014
- May 2014
- April 2014
- March 2014
- January 2014
- November 2013
- October 2013
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
-
Meta
Author Archives: ronaldpringadi
Storage Speed Benchmark Using CrystalDiskMark
I have always been an enthusiast in computer hardware benchmark. Lately I been trying to increase my overall PC performance (both laptop and desktop). A speedy and responsive system does not only take a fast processor, but also enough RAM … Continue reading
Vacuum the Whole Database in Postgres
Postgres comes with a functionality called vacuum. Vacuum is intended to cleanup dead tuples or rows. This is how you cleanup the entire DB in PostgreSQL 1/usr/pg9/bin/vacuumdb –full –port=5433 –username=YOUR_USERNAME –password DB_NAME
Posted in Database, PostgreSQL
Comments Off on Vacuum the Whole Database in Postgres
Finding a String Inside Multiple Files in Linux
This is how you can find a text/string Proudly inside folder /var/www. The -H parameter is to show the filename and -R is to make grep look recursively. 1grep -H -R "Proudly" /var/www
Posted in Linux
Comments Off on Finding a String Inside Multiple Files in Linux
Edit default Gnome-Terminal
Every time I open a shell terminal in my Ubuntu, I always think that the window size is too small. I always ended up resizing the shell window manually using the mouse. If you’re having this problem here is how … Continue reading
Add an Existing User to an Existing Group on Linux
1usermod -a -G GROUPNAME USERNAME
Posted in Linux
Comments Off on Add an Existing User to an Existing Group on Linux
Backup and Restore Postgres Using pg_dump and psql
This is how you backup your Postgres Database To Backup 1pg_dump –host=localhost –port=5432 –username=postgres –file=YOUR_FILENAME.sql YOUR_DB_NAME There are other options such as if you’re interested only on the structure then you can add: 1pg_dump –host=localhost –port=5432 –username=postgres –schema-only –format=p –create … Continue reading
Posted in Database, PostgreSQL
Comments Off on Backup and Restore Postgres Using pg_dump and psql
Setting Session Authorization and Search Path
SET SESSION AUTHORIZATION jane; SET search_path = schema1,schema2, schema3; SELECT * FROM any_table_in_schema_1_2_or_3;
Posted in Database, PostgreSQL
Comments Off on Setting Session Authorization and Search Path
Implicit Casting in PostgreSQL
12CREATE CAST(integer AS character varying) WITH INOUT AS IMPLICIT; CREATE CAST (character varying AS integer) WITH INOUT AS IMPLICIT;
Posted in Database, PostgreSQL
Comments Off on Implicit Casting in PostgreSQL