Re: Using LIMIT 1 in plpgsql PERFORM statements

Поиск
Список
Период
Сортировка
От Karl O. Pinc
Тема Re: Using LIMIT 1 in plpgsql PERFORM statements
Дата
Msg-id 1130114418l.8670l.2l@mofo
обсуждение исходный текст
Ответ на Re: Using LIMIT 1 in plpgsql PERFORM statements  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: Using LIMIT 1 in plpgsql PERFORM statements  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-performance
On 10/23/2005 04:02:35 PM, Josh Berkus wrote:

> I'm wondering in what context it makes sense to call PERFORM on a
> constant.

I like to write PERFORMs that return a constant when
selecting from a table.  It emphasizes that the
selection is being done for its side effects.

(Programs should be written for people to read
and only incidentally for computers to execute.
Programs that people can't read quickly
become useless whereas programs that can't run
quickly can be fixed.  Computers are easy.
People are difficult.)

Karl <kop@meme.com>
Free Software:  "You don't pay back, you pay forward."
                  -- Robert A. Heinlein


В списке pgsql-performance по дате отправления:

Предыдущее
От: "Karl O. Pinc"
Дата:
Сообщение: Re: Using LIMIT 1 in plpgsql PERFORM statements
Следующее
От: "Christian Paul B. Cosinas"
Дата:
Сообщение: Re: Used Memory