[ADMIN] Remote login to the database

2001-04-25 Thread vijayendra mohan agrawal
Hi, Sorry if the question is too preliminary. I want to know if we can login to the database running at the server from any place. I know I have to allow such access thru pg_hba.conf file. But how do I connect to the database. Can I do something like : pgsql database@serverIP where serverIP ca

Re: [ADMIN] Can't drop table (repost)

2001-04-25 Thread Tom Lane
Jeremy Buchmann <[EMAIL PROTECTED]> writes: > I have a weird situation here...I'm trying to drop a table, but it tells me > that "Relation 'xxx' inherits 'mytable'". So I renamed mytable to > myoldtable and created a new mytable. Now, the new mytable is missing the > fields I was trying to a

[ADMIN] Reason to not upgrade from 6.5 to 7.0 or above

2001-04-25 Thread bangh
> > > I'm using pgsql 6.5.3 on Linux 2.2 > > Time to upgrade... > > regards, tom lane > I am using 6.5 too. The reason is some data type are gone. e.g. datetime. If do so, I have to modify my application. Ciao, Banghe ---(end of broadcast)--

[ADMIN] Re: Reason to not upgrade from 6.5 to 7.0 or above

2001-04-25 Thread Tom Lane
bangh <[EMAIL PROTECTED]> writes: > I am using 6.5 too. The reason is some data type are > gone. e.g. datetime. If do so, I have to modify my application. ?? This still works: regression=# create table foo (f1 datetime); CREATE regards, tom lane ---

Re: [ADMIN] Can't drop table (repost)

2001-04-25 Thread Tom Lane
Jeremy Buchmann <[EMAIL PROTECTED]> writes: > So it is one of those temp tables...now if I delete those tables with the > allow-system-table-mods switch, will that still correct the pg_inherits > table so that the dependency no longer exists? Yes, you should be okay once you've dropped the leftov

Re: [ADMIN] Can't drop table (repost)

2001-04-25 Thread Tom Lane
Jeremy Buchmann <[EMAIL PROTECTED]> writes: > Okay great, but how do I know what tables I need to drop if it just gives me > a number? That 'xxx' is just some number like '8892659'. Where is the > mapping from number->name? select relname from pg_class where oid = '8892659'; More recent ve

Re: [ADMIN] Can't drop table (repost)

2001-04-25 Thread Jeremy Buchmann
> Jeremy Buchmann <[EMAIL PROTECTED]> writes: >> Okay great, but how do I know what tables I need to drop if it just gives me >> a number? That 'xxx' is just some number like '8892659'. Where is the >> mapping from number->name? > > select relname from pg_class where oid = '8892659'; > > M

[ADMIN] Re: Reason to not upgrade from 6.5 to 7.0 or above

2001-04-25 Thread Joel Burton
On Sat, 17 Feb 2001, bangh wrote: > > > I'm using pgsql 6.5.3 on Linux 2.2 > > > > Time to upgrade... > > > > regards, tom lane > > > > I am using 6.5 too. The reason is some data type are gone. e.g. datetime. If do > so, I have to modify my application. Is there anythin

Re: [ADMIN] Can't drop table (repost)

2001-04-25 Thread Jeremy Buchmann
> Jeremy Buchmann <[EMAIL PROTECTED]> writes: >> I have a weird situation here...I'm trying to drop a table, but it tells me >> that "Relation 'xxx' inherits 'mytable'". So I renamed mytable to >> myoldtable and created a new mytable. Now, the new mytable is missing the >> fields I was tryin

Re: [ADMIN] Remote login to the database

2001-04-25 Thread Jared Sulem
vijayendra mohan agrawal wrote: > how do I connect to the database. psql -h host [-p port] [-U username] database_name OR psql -h host [-p port] database_name username psql --help for details of all the options. One thing to remember - if you try to login from the database machine and if yo

[ADMIN] Problem with postgres

2001-04-25 Thread [EMAIL PROTECTED]
when I am logging on Postgres i haven't to give a password How can I do in order to have one ? when I want to pg_dump a database with user postgres, this error appears : permisson not allowed whereas with user root it is good how can i resolve this problem ? THANKS __

[ADMIN] logs

2001-04-25 Thread [EMAIL PROTECTED]
I want to view events about my databases on a log file In /var/lib/pgsql/data I have a log directory 'syslog' which contains no files how can I do in order to have events in a file in this directory ? Otherwise, what is the better method to view events in a log file ? I have tryed to configure

[ADMIN] Re: Problem with postgres

2001-04-25 Thread Joel Burton
On Wed, 25 Apr 2001, [EMAIL PROTECTED] wrote: > when I am logging on Postgres i haven't to give a password > > How can I do in order to have one ? Look at the pg_hba.conf file (normally in $PGDATA directory). You'll want to change the 'trust' to 'password' for local users. -- Joel Burton

[ADMIN] Re: logs

2001-04-25 Thread Joel Burton
On Wed, 25 Apr 2001, [EMAIL PROTECTED] wrote: > I have tryed to configure pg_options for logs but it was not successful Normally, you want to up your debug level in pg_options. Can you tell us more specifically what you've tried to do? -- Joel Burton <[EMAIL PROTECTED]> Director of Informati

[ADMIN] createdb failing

2001-04-25 Thread Aaron Brown
I am trying to create a new database in an alternate location using 'initlocation' and 'createdb'. The 'initlocation' utility appears to work, but 'createdb' always fails with the following error: "ERROR: The database path 'PGDATA2' is invalid. This may be due to a character that is not allowed

Re: [ADMIN] logs

2001-04-25 Thread Lamar Owen
"[EMAIL PROTECTED]" wrote: > > I want to view events about my databases on a log file For version 7.0.x in the RPM distribution: 1.) Enable syslog in pg_options (see documentation on the levels necessary) 2.) Add a line to /etc/syslog.conf for local1 to go to the file you want. 3.) R

Re: [ADMIN] createdb failing

2001-04-25 Thread Tom Lane
Aaron Brown <[EMAIL PROTECTED]> writes: > I put the absolute path of the new location in the PGDATA2 environment > variable, which is visible to the postmaster because the variable is > set at system startup in /etc/profile.local. Are you *sure* about that? The described symptoms certainly sound