Thanks to Priti Sawant for his help on this.create function modify_date() returns OPAQUE as ' begin new.modified_date := ''now''; return new; end; ' language plpgsql; create trigger modify_date_trig before insert or update on pan_type for each row execute procedure modify_date();
This is Postgres' helpful way of telling you to recreate your view. Or it might mean that you should say "CREATE OR REPLACE" when you drop and create a function.ERROR: Relation "rl_resources_revisions" with OID 330733 no longer exists
Or upgrade to Postgres 7.3.x, which doesn't have that limit.
Also, adding integers to dates in Postgres
Also, selecting a series with Postgres:
select current_date + s.a as dates from generate_series(0,14,7) as s(a); dates ------------ 2004-02-05 2004-02-12 2004-02-19 (3 rows)
to_date vs. to_timestamp (also info on coalesce and truncate vs. date_trunc)
Then you need to install the libreadline4-dev package (which includes the header files you need). On Debian:checking for readline... no configure: error: readline library not found If you have readline already installed, see config.log for details on the failure. It is possible the compiler isn't looking in the proper directory. Use --without-readline to disable readline support.
apt-get install libreadline4-dev
*.xql files are loaded into memory at start. They take precedence over queries quoted in *.tcl files.
Sometimes Oracle syntax or reserved words make it into postgresql queries. Here (is the start of a list) of equivalents