Re: Using the extract() function in plpgsql

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "Kristis Makris" <kristis(dot)makris(at)datasoft(dot)com>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Using the extract() function in plpgsql
Date: 2001-06-21 14:28:29
Message-ID: 003701c0fa5e$722570a0$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-sql

From: "Kristis Makris" <kristis(dot)makris(at)datasoft(dot)com>

> Hi Peter,
>
> Thanks for looking into this. I tried the CREATE TABLE AS syntax within
> an EXECUTE command but I still get the same error message. The CREATE
> TABLE AS docs mention that this syntax is "functionalily equivalent" to
> the SELECT INTO, so it's no surprise that I get the same error message:
>
> NOTICE: The execStmt is: CREATE TEMPORARY TABLE test AS SELECT
> extract(epoch from interval '62 days 22:30:48')
> ERROR: EXECUTE of SELECT ... INTO is not implemented yet

In the example above you can just CREATE the table then INSERT into it -
avoids the whole issue. Is the example accurate?

- Richard Huxton

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2001-06-21 14:56:54 Re: Problems upgrading from 7.1beta4 to 7.1.0
Previous Message Tom Lane 2001-06-21 14:17:44 Re: Gradual increase in CPU utilization by postmaster

Browse pgsql-sql by date

  From Date Subject
Next Message Jeff Eckermann 2001-06-21 14:48:30 RE: arguments for query files
Previous Message Tom Lane 2001-06-21 14:05:07 Re: Extracting date from epoche