pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Radu-Adrian Popescu <radu.popescu@aldratech.com>
To: sad <sad@bankir.ru>
Cc: pgsql-sql@postgresql.org
Subject: Re: feature request ?
Date: Fri, 25 Jun 2004 12:27:47 +0300
Message-ID: <40DBF013.1000401@aldratech.com> (raw)
In-Reply-To: <200406250813.52660.sad@bankir.ru>
References: <71E37EF6B7DCC1499CEA0316A256832801057B7C@loki.wc.globexplorer.net>
	<20040624174305.GA32506@wolff.to>
	<40DB1C79.1000307@aldratech.com>
	<200406250813.52660.sad@bankir.ru>

sad wrote:
>>You can think of values in plpgsql as wrapper objects that carry a value
>>and have a "is_null" flag; I have no idea how they're implemented in
>>PostgreSQL or in any RDMBS in general but this should do it, at least for a
>>naive implementation.
> 
> 
> 
> Why should i think on simple object MUCH more complicated than it in nature is 
> ?
> Let we discuss plpgsql here. Leave the Java to Javers.
> 
> 
> 

I _am_ discussing plpgsql here. And I'm also trying to shed some light on this one.

Now, you think of these things as "MUCH more complicated" because they are NOT 
simple objects, and if you think that having an integer value that can be NULL 
is complicated, perhaps you should stick to assembly.
Now, I'm no specialist on this, but it is quite obvious that any data type 
instance in SQL can have values from:
- its natural domain (arrays of characters, numbers, ip addresses, dates, binary 
data and so on)
- NULL

Now think of where else you've seen this. It's quite obvious that
"function foo(int)" in plpgsql is like "void foo(Integer i)" or like "void 
foo(int* i)" and NOT like "void foo(int i)". Now the latter does not put any 
problems to anyone, does it ? You check that the reference is set and then 
proceed to use it's value.

Also you might consider giving it a rest and stop shouting in the forum - it's 
not your back yard you know.

Peace,
-- 
Radu-Adrian Popescu
CSA, DBA, Developer
Aldrapay MD
Aldratech Ltd.
+40213212243




view thread (33+ messages)  latest in thread

Message-ID: <40DBF013.1000401@aldratech.com>
Permalink:  ../40DBF013.1000401@aldratech.com/
Also on:    postgresql.org/message-id/40DBF013.1000401@aldratech.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: radu.popescu@aldratech.com, sad@bankir.ru
  Subject: Re: feature request ?
  In-Reply-To: <40DBF013.1000401@aldratech.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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