Suppose I have table a and b (b inherits a). Then I do select * from a*; Now, I'd like to know which table this particular row came from (a or b). Is this possible? Or do I have to have a column where I'd store what kind of object this is? -alex
In the up and coming version of postgres there will be a special column called "tableoid" which gives the oid from pg_class of the table it came from. If you are not using the current CVS sources, you will have to keep a column updated yourself. Alex Pilosov wrote: > > Suppose I have table a and b (b inherits a). > > Then I do select * from a*; > > Now, I'd like to know which table this particular row came from (a or b). > Is this possible? Or do I have to have a column where I'd store what kind > of object this is? > > -alex -- Chris Bitmead mailto:chris@bitmead.com http://www.techphoto.org - Photography News, Stuff that Matters
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера