[ADMIN] check for null value

2004-01-16 Thread Ashok Chauhan
hello i am selecting ten fields form a table and i want to replace the null values with any other value. plz. help me Ashok ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/F

[ADMIN] data type

2003-12-31 Thread Ashok Chauhan
hello how i recognize the data type of any field except \d table_name; there is a function of libpq library for recognize field type but it returns a number not a name of the data type so how i know the name with the help of this number. recv_interger_number = PQftype(resultant_pointer,field_n

Re: [ADMIN] drop column

2003-12-30 Thread Ashok Chauhan
On Tue, 2003-12-30 at 14:04, A.Bhuvaneswaran wrote: > > A command for remove the column but it not work > > it gives parse error > > ALTER TABLE tablename DROP COLUMN fieldname; > > drop column feature is implemented since 7.3. So, you please check out > your version. > > regards, > bhuvaneswaran

[ADMIN] drop column

2003-12-30 Thread Ashok Chauhan
hello i have a problem to drop a column. on postgresql site (link) http://www.postgresql.org/docs/current/interactive/ddl-alter.html#AEN2124 A command for remove the column but it not work it gives parse error ALTER TABLE tablename DROP COLUMN fieldname; plz. help me Ashok --

[ADMIN] system variable for update

2003-12-17 Thread Ashok Chauhan
hello in postgresql there is any system variable for update Means if i update a record so any system variable store the timestamp(update time) of that updated record. Thankyou Ashok ---(end of broadcast)--- TIP 7: don't forget to increase your fr

[ADMIN] error in code

2003-12-09 Thread Ashok Chauhan
# include # include # include int main() { PGresult *result; PGconn *conn; int feild; printf("successful"); conn = PQconnectdb ("ashok"); result = PQexec (conn, "select * from bill"); feild = PQntuples (result

[ADMIN] error in code

2003-12-08 Thread Ashok Chauhan
hi * # include # include # include # include int main() { PGresult *result; PGconn *conn; int feild; conn = PQconnectdb ("ashok"); result = PQexec (conn, "select * from bill"); feild = PQntuples (result); p

[ADMIN] timestamp field

2003-12-08 Thread Ashok Chauhan
hi there is any command to see the timestamp of any record that is stored in a table already. Except that add a field of timestamp type in that table. plz help me. ---(end of broadcast)--- TIP 4: Don't 'kill -9' the postmaster

[ADMIN] insert & update query

2003-12-06 Thread Ashok Chauhan
hi In postgresql any mechanism for store insert & update queries of a particular database. so that after sometime i can use those queries. plz help me. ---(end of broadcast)--- TIP 9: the planner will ignore your desire to choose an index scan if y

[ADMIN] find table name

2003-12-06 Thread Ashok Chauhan
hi In postgresql all databases are stored in /data/base directory in numbers form and all the related tables with that database are stored in that directory again in numbers form. so there is any command or query to see the original table names. just like:- select * from pg_stat_database; for da

[ADMIN] find a table name

2003-12-06 Thread Ashok Chauhan
hi In postgresql all databases are stored in /data/base directory in numbers form and all the related tables with that database are stored in that directory again in numbers form. so there is any command or query to see the original table names. just like:- select * from pg_stat_database; for d

[ADMIN] find a table name

2003-12-06 Thread Ashok Chauhan
hi In postgresql all databases are stored in /data/base directory in numbers form and all the related tables with that database are stored in that directory again in numbers form. so there is any command or query to see the original table names. just like:- select * from pg_stat_database; for d

[ADMIN] TCP/IP connection

2003-12-05 Thread Ashok Chauhan
hi i want to accsess my postgresql data base from network it is only possible when i start postgresql by following command:- postmaster -i -D /var/lib/pgsql/data after rebooting the system it does not listen for TCP/IP connection. how can i configure it for listening TCP/IP connection after reboot

[ADMIN] see previous queries

2003-12-04 Thread Ashok Chauhan
hi i am a new user in postgresql. problem:- in postgresql there is any command to see history (previous day queries) like as history command in linux. thank you ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister c

[ADMIN] incremental backup

2003-12-02 Thread Ashok Chauhan
hi there is any utility or command in postgresql for incremental backup or incremental restore. plz. help me. ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere"

[ADMIN] syncronization

2003-11-25 Thread Ashok Chauhan
hi; i am trying to make a utility that is worked as database synchronization. there are 5 offices in different states and all they use same database means (same structure table). there is a head office where is central server that is maintained all offices databases seprately. now i think follow

[ADMIN] ERROR

2003-11-22 Thread Ashok Chauhan
# include # include int main() { int feild; PGresult *result; PGconn *conn; conn = PQconnectdb("database"); result = PQexec (conn, "select * from teblename"); feild = PQntuples (result); printf("%d",feild); PQclear(result);

[ADMIN] re-install postgresql

2003-11-21 Thread Ashok Chauhan
help me i re - install the postgresql but it not start, gives following errors: 1) initiliazing database [FAILED] 2) postgresql service [FAILED] it gives a message in /var/log/message:- "session closed for user postgres" pls help me. -

[ADMIN] compare two databases

2003-11-16 Thread Ashok Chauhan
there is any utility or command for compare two databases, tables structure (schema). ---(end of broadcast)--- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

[ADMIN] help me

2003-10-20 Thread Ashok Chauhan
after login into pgsql through a user, when i try to connect some other database it always says that permission denied. what do i do? ---(end of broadcast)--- TIP 7: don't forget to increase your free space map settings

[ADMIN] how to recognise databses

2003-10-20 Thread Ashok Chauhan
we have made 4 databases in postgresql, now we want to know how can be recognize these database files in /var/lib/pgsql/data/base. ---(end of broadcast)--- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/fa

[ADMIN] pg_hba.conf

2003-10-15 Thread Ashok Chauhan
>>If I do any changes in pg_hba.conf file do I need restart pgsql. >>The changes I made does not taking effect. >>ganesh Yes, you need to restart pgsql. the changes you made it does not effect. but also my suggestion is that to perform any changes in pg_hba.conf or any pgsql configration file ,