Log in

View Full Version : ttg database postgresSQL


Linuxmania
20th November 2011, 12:45 AM
halo.. mw nanya donk. ane pake database postgresSQL 8.3..

nah kn ane pake laptop n pake PC.. yg sebagai server itu dilaptop, nama databasenya sagara, table pegawai dengan ip : 192.168.1.2



sedangkn di pc itu client dengan ip : 192.168.1.1

ane ud daftarkan dari server ip si client.. abis itu pake script ini


Quote:





select dblink_connect('host=192.168.1.2 user=postgres dbname=sagara')





kenapa gk mw jalan yah?? error ny si ini


Quote:





ERROR: function dblink_connect(unknown) does not exist

LINE 1: select dblink_connect('host=192.168.1.2 user=postgres dbname...

^

HINT: No function matches the given name and argument types. You might need to add explicit type casts.



********** Error **********



ERROR: function dblink_connect(unknown) does not exist

SQL state: 42883

Hint: No function matches the given name and argument types. You might need to add explicit type casts.

Character: 8





nah ane ud googling, ad yg blng cek di folder share, contrib.. ad koq file dblinknya, tp dalam bentuk notepad.. nah ane ud buka, ud pahami functionny ad function dblink_connect dll.. kenapa gk bisa connect yah?? ap musti di cast atau di reference dl ya? ad yg tau caranya?? thx..

</div>