pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedDumb Question
6+ messages / 4 participants
[nested] [flat]
* Dumb Question
@ 2001-02-02 04:33 Leland V. Lammert <lvl@omnitec.net>
2001-02-02 15:22 ` Re: Dumb Question Peter Eisentraut <peter_e@gmx.net>
2001-02-02 16:29 ` Re: Dumb Question Leland V. Lammert <lvl@omnitec.net>
0 siblings, 2 replies; 6+ messages in thread
From: Leland V. Lammert @ 2001-02-02 04:33 UTC (permalink / raw)
To: pgsql-admin
Hi folks,
I was trying to install pgsql today on our db server (standard BSD4), ..
and no matter which source tree I installed, I found the following problems:
1) The make quit trying to install 'interface' - I am not using anything
except php4, .. yet it seemed to be requiring ODBC by default??
2) I don't know if this was related to #1, but none of the utilities
installed (i.e. initdb), so I am dead in the water.
Did I miss something in the FAQs? Is there more than one source tree
required (e.g. base + ??)? I don't want ODBC, why is is install trying to
do ODBC interfaces??
TIA for any clues,
Lee
============================================
Leland V. Lammert lvl@omnitec.net
Chief Scientist Omnitec Corporation
Network/Internet Consultants www.omnitec.net
============================================
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Dumb Question
2001-02-02 04:33 Dumb Question Leland V. Lammert <lvl@omnitec.net>
@ 2001-02-02 15:22 ` Peter Eisentraut <peter_e@gmx.net>
1 sibling, 0 replies; 6+ messages in thread
From: Peter Eisentraut @ 2001-02-02 15:22 UTC (permalink / raw)
To: Leland V. Lammert <lvl@omnitec.net>; +Cc: pgsql-admin
Leland V. Lammert writes:
> I was trying to install pgsql today on our db server (standard BSD4), ..
> and no matter which source tree I installed, I found the following problems:
>
> 1) The make quit trying to install 'interface' - I am not using anything
> except php4, .. yet it seemed to be requiring ODBC by default??
>
> 2) I don't know if this was related to #1, but none of the utilities
> installed (i.e. initdb), so I am dead in the water.
Show what you did and what appeared on the screen, not descriptions in
your own words.
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Dumb Question
2001-02-02 04:33 Dumb Question Leland V. Lammert <lvl@omnitec.net>
@ 2001-02-02 16:29 ` Leland V. Lammert <lvl@omnitec.net>
2001-02-03 16:44 ` Re: Dumb Question Peter Eisentraut <peter_e@gmx.net>
1 sibling, 1 reply; 6+ messages in thread
From: Leland V. Lammert @ 2001-02-02 16:29 UTC (permalink / raw)
To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-admin
At 04:22 PM 2/2/01 +0100, Peter Eisentraut wrote:
>Leland V. Lammert writes:
>
> > I was trying to install pgsql today on our db server (standard BSD4), ..
> > and no matter which source tree I installed, I found the following
> problems:
> >
> > 1) The make quit trying to install 'interface' - I am not using anything
> > except php4, .. yet it seemed to be requiring ODBC by default??
> >
> > 2) I don't know if this was related to #1, but none of the utilities
> > installed (i.e. initdb), so I am dead in the water.
>
>Show what you did and what appeared on the screen, not descriptions in
>your own words.
Hi Peter,
Thanks for the reply, .. here is what I had done (the tarball names are
from memory):
1) Install Postgresql-7.0.3.tgz
2) Configure & make - fail at making 'interfaces'
3) Install Postgresql-7-003-base.tgz (this seemed to include util/init - I
assume this is initdb??)
4) Configure and make - again fail at making 'interfaces'
5) I then tried to follow the FAQ to initialize the database structure, ..
but found that there was no 'initdb' in the bin directory.
Does that help? I assume the sub-steps are irrelavent since the make worked
up to 'interfaces' (install gmake, [BSD4.0 system], extract tar, ./configure).
TIA,
Lee
============================================
Leland V. Lammert lvl@omnitec.net
Chief Scientist Omnitec Corporation
Network/Internet Consultants www.omnitec.net
============================================
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: Dumb Question
2001-02-02 04:33 Dumb Question Leland V. Lammert <lvl@omnitec.net>
2001-02-02 16:29 ` Re: Dumb Question Leland V. Lammert <lvl@omnitec.net>
@ 2001-02-03 16:44 ` Peter Eisentraut <peter_e@gmx.net>
0 siblings, 0 replies; 6+ messages in thread
From: Peter Eisentraut @ 2001-02-03 16:44 UTC (permalink / raw)
To: Leland V. Lammert <lvl@omnitec.net>; +Cc: pgsql-admin
Leland V. Lammert writes:
> 1) Install Postgresql-7.0.3.tgz
> 2) Configure & make - fail at making 'interfaces'
Our makefiles don't have a target called 'interfaces'. There's a
directory called interfaces, so you have to be more particular.
> 3) Install Postgresql-7-003-base.tgz (this seemed to include util/init - I
> assume this is initdb??)
If you did 1) you don't need this. The ftp server has a file the
explains the dist split.
> 4) Configure and make - again fail at making 'interfaces'
>
> 5) I then tried to follow the FAQ to initialize the database structure, ..
> but found that there was no 'initdb' in the bin directory.
--
Peter Eisentraut peter_e@gmx.net http://yi.org/peter-e/
^ permalink raw reply [nested|flat] 6+ messages in thread
* [possibly] dumb question
@ 2001-05-04 17:39 Dmitry Morozovsky <marck@rinet.ru>
2001-05-04 19:21 ` Re: [possibly] dumb question Joel Burton <jburton@scw.org>
0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Morozovsky @ 2001-05-04 17:39 UTC (permalink / raw)
To: pgsql-admin
Hello colleagues,
sorry for dumb question, but can anybody advise me what default statement
should I write to fill timestamp column in record to the time of
insertion. 'now'::timestamp leads to timestamp of database creation for
all records, 'current' can not be converted to timestamp...
also, I'm rather new to triggers, can anybody help me how should look the
trigger for tracking last modification time of the record (yes, I do know
I can simply put 'now' in update statement, but I want to disable ability
to change such column by hand)
Thanks in advance.
Sincerely,
D.Marck [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: [possibly] dumb question
2001-05-04 17:39 [possibly] dumb question Dmitry Morozovsky <marck@rinet.ru>
@ 2001-05-04 19:21 ` Joel Burton <jburton@scw.org>
0 siblings, 0 replies; 6+ messages in thread
From: Joel Burton @ 2001-05-04 19:21 UTC (permalink / raw)
To: Dmitry Morozovsky <marck@rinet.ru>; +Cc: pgsql-admin
On Fri, 4 May 2001, Dmitry Morozovsky wrote:
> sorry for dumb question, but can anybody advise me what default statement
> should I write to fill timestamp column in record to the time of
> insertion. 'now'::timestamp leads to timestamp of database creation for
> all records, 'current' can not be converted to timestamp...
>
> also, I'm rather new to triggers, can anybody help me how should look the
> trigger for tracking last modification time of the record (yes, I do know
> I can simply put 'now' in update statement, but I want to disable ability
> to change such column by hand)
current_timestamp will work, and is a standard as well. No parenthesis
after it.
Make a procedure that (a) updates the changed field, and disallows
changes. Something like:
create table foo (
...
chgat timestamp not null default current_timestamp
);
create function foo_update() returns opaque as '
begin
if new.chgat <> old.chgat then
raise error ''Do not change timestamp fields by hand'';
end if;
new.chgat = current_timestamp;
return new;
end;
' language 'plpgsql';
and use that as your AFTER UPDATE trigger.
BTW, this question should be sent to pgsql-general or
pgsql-novice. pgsql-admin is mostly for administrative info about
PostgreSQL.
--
Joel Burton <jburton@scw.org>
Director of Information Systems, Support Center of Washington
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2001-05-04 19:21 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-02-02 04:33 Dumb Question Leland V. Lammert <lvl@omnitec.net>
2001-02-02 15:22 ` Peter Eisentraut <peter_e@gmx.net>
2001-02-02 16:29 ` Leland V. Lammert <lvl@omnitec.net>
2001-02-03 16:44 ` Peter Eisentraut <peter_e@gmx.net>
2001-05-04 17:39 [possibly] dumb question Dmitry Morozovsky <marck@rinet.ru>
2001-05-04 19:21 ` Re: [possibly] dumb question Joel Burton <jburton@scw.org>
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