pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Emergency questions for new bie
2+ messages / 2 participants
[nested] [flat]

* Emergency questions for new bie
@ 2000-04-12 20:29 Jack Zhu <jzhu@netcom-sys.com>
  2000-04-13 02:05 ` Re: Emergency questions for new bie Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Jack Zhu @ 2000-04-12 20:29 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I'm an Oracle DBA, lately I  began a project work on  PostgreSQL 6.5.3
for Red Hat Linux 6.0.

Every thing is fine, except:

1.How can I enable PG run as 'no-fsync' mode to improve performance? How
can I check PG is in 'fsync' mode or not?

2. We have a table contain a column which use 'timestamp' data type.
'cause we need both date and time in this column, and don't want to
break it into two columns with 'date' and 'time' data type(if so, we may
have to change thousands of lines code, it origrinally works on Oracle).
But when I tried to create an index on this 'timestamp' column, I got
this error and creating failed: 'Cannot find a default operator class
for type 1296.'

I use this SQL command to create index: create index ind_name on
tab_name(col_name);

Can't I create index on 'timestamp' column? Right now since there's no
index on this column, our app runs very very slow!

THanks a lot!

Jack




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Emergency questions for new bie
  2000-04-12 20:29 Emergency questions for new bie Jack Zhu <jzhu@netcom-sys.com>
@ 2000-04-13 02:05 ` Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2000-04-13 02:05 UTC (permalink / raw)
  To: Jack Zhu <jzhu@netcom-sys.com>; +Cc: pgsql-admin

Jack Zhu writes:

> 1.How can I enable PG run as 'no-fsync' mode to improve performance?

postmaster -o '-F'

> How can I check PG is in 'fsync' mode or not?

It is if and only if you give the above option.

> But when I tried to create an index on this 'timestamp' column, I got
> this error and creating failed: 'Cannot find a default operator class
> for type 1296.'

Indexes don't work for timestamp in 6.5. Use datetime, or better yet
upgrade to 7.0 which should be out in a few weeks. (jinx)


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-04-13 02:05 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-04-12 20:29 Emergency questions for new bie Jack Zhu <jzhu@netcom-sys.com>
2000-04-13 02:05 ` Peter Eisentraut <peter_e@gmx.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox