Run the following command as root
echo 3 > /proc/sys/vm/drop_caches
#include "libpq-fe.h"However, it throws the following error:
error: libpq-fe.h: No such file or directoryThis can be solved by including the following in Makefile of that contib
PG_CPPFLAGS = -I$(libpq_srcdir)This includes the option -I../../src/interfaces/libpq during make and hence the header file becomes accessible.
set breakpoint pending on
set detach-on-fork off
Open the document in vim, press v and move to select text and then press one of the following:
U - converts to upper case u - converts to lower case ~ - toggles the case of selected
ggVGureplace u with U for uppercase and ~ to toggle.
vim ~/.psqlrcand add the following to the file
\timingWhen you connect to database and run a query, the time is also displayed:
postgres=# SELECT current_timestamp;
now
----------------------------------
2014-03-11 10:34:40.378455+05:30
(1 row)
Time: 43.821 ms
:let @a=1 | %s/<old_word>/\='<new_word>'.(@a+setreg('a',@a+1))/g