Skip site navigation (1) Skip section navigation (2)

Re: dynamic interval in plpgsql

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Thilo Hille <thilo(at)resourcery(dot)de>, pgsql-novice(at)postgresql(dot)org
Subject: Re: dynamic interval in plpgsql
Date: 2004-03-29 21:46:05
Message-ID: 200403291346.05852.josh@agliodbs.com (view raw or flat)
Thread:
Lists: pgsql-novice
Thilo,

> i work on a stored procedure which does some timespecific calculations 
> in plpgsql.
> in a loop i want  to increase a timestamp by a changing interval. but i 
> found no way to assign a variable to INTERVAL .
> finally i used plpython for the function but i still wonder if it could 
> be done with plpgsql?

I'm sure this is possible, but from your description I can't figure out what 
you're trying to do.  Please be more explicit.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco


In response to

Responses

pgsql-novice by date

Next:From: Jay CampbellDate: 2004-03-29 22:55:41
Subject: question about libpq
Previous:From: Joe BordesDate: 2004-03-29 16:42:46
Subject: Re: how to test string against regular expression contained in postgresql database field?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group