Re: Alternative to tableoids?

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: Alternative to tableoids?
Дата
Msg-id 20080205102158.GB10083@svana.org
обсуждение исходный текст
Ответ на Alternative to tableoids?  ("fkater@googlemail.com" <fkater@googlemail.com>)
Список pgsql-general
On Mon, Feb 04, 2008 at 08:12:51PM +0100, fkater@googlemail.com wrote:
> what's an alternative to tableoids?
>
> As I've learned today they are not consistant across pg_dump/restore.
>
> I need to point to (lots of dynamically added) tables and used tableoids
> before.
>
> Are there other solutions to point to tables besides using tableoids
> or wasting disk space using the strings of 'schema' and 'tablename'
> everywhere as a reference?

Use regclass, takes the same space as OIDs but works across
dump/restore. For tables anyway (not indexes etc al)

Have a nice day,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Those who make peaceful revolution impossible will make violent revolution inevitable.
>  -- John F Kennedy

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: postgresql-8.3.0-1-binaries-no-installer: gssapi32.dll missed ?
Следующее
От: Ivan Sergio Borgonovo
Дата:
Сообщение: cursor vs. for _row in select...