Search Postgresql Archives

plpgsql/rule question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is it possible to tell if a column in a NEW record in a plpgsql function was 
explicitly specified as NULL or simply left out altogether?

For example, if I have the following table:

	create table foo(id serial, msg varchar)

Is it possible to distinguish within plpgsql between these two queries?

	insert into foo (msg) values ('Hello')
	insert into foo (id, msg) values (NULL, 'Hello')

TIA.

Ed


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux