Re: Strange problem with create table as select * from table;
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Strange problem with create table as select * from table; |
| Дата | |
| Msg-id | 16649.1320357724@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Strange problem with create table as select * from table; (hubert depesz lubaczewski <depesz@depesz.com>) |
| Ответы |
Re: Strange problem with create table as select * from
table;
|
| Список | pgsql-general |
hubert depesz lubaczewski <depesz@depesz.com> writes:
> i tried:
> create table qqq as select cmax as o_cmax, xmax as o_xmax, cmin as
> o_cmin, xmin as o_xmin, ctid as o_ctid, * from sssssss.xobjects;
> but the resulting table didn't have -1 values:
Oh, that's pretty interesting ... suggests that the targetlist has to be
exactly "select *". We have some minor optimizations for that case,
though nothing that could result in extra rows AFAICS.
Are there any dropped columns in the original table? Try
select * from pg_attribute where attrelid = 'sssssss.xobjects'::regclass
and attisdropped;
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера