Ad-hoc table type?
| От | pgsql@mohawksoft.com |
|---|---|
| Тема | Ad-hoc table type? |
| Дата | |
| Msg-id | 58103.71.232.149.185.1222639747.squirrel@mail.mohawksoft.com обсуждение исходный текст |
| Ответы |
Re: Ad-hoc table type?
|
| Список | pgsql-hackers |
I was in a discussion with someone about the difference between ad-hoc
storage systems and SQL. Yes, I know, I was rolling my eyes as well. One
thing did strike me though was the idea that a table could contain a
variable number of columns.
Something like this:
create adhoc table foo ();
insert into foo (name, rank, serial) values ('joe', 'sargent', '42');
In an "ad-hoc" table type, when an insert is made, and a column is not
found, then a new varchar column is added.
I know the idea has a lot of holes, and is probably a bad idea, but it
answers an important problem of easily mapping programmatic types to a
database.
Anyone think its interesting?
В списке pgsql-hackers по дате отправления: