Re: Call for pg_dump testing

From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Call for pg_dump testing
Date: 2003-12-08 03:19:47
Message-ID: 3FD3EDD3.8040204@familyhealth.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> There's not currently any code for that, though I imagine we could
> invent some at need. Please provide example cases.

create view v1 as select 1;
create view v2 as select 1 + (select * from v1);
create or replace view v1 as select * from v2;

It seems to me that the only way to solve that one is to dump 'view
shells'. eg. for text columns return '' and numeric columns return 0:

eg:

create view v1 as select 0::integer;
create view v2 as select 1 + (select * from v1);
create or replace view v1 as select * from v2;

>>Also, what happens if I delete a key dependency from my pg_depend table
>>manually?
>
>
> Postgres has always allowed you to shoot yourself in the foot by
> manually diddling the system catalogs. I place this in the "if it
> hurts, don't do it" category ...

Is there any reason for us to still allow that? What is there left that
requires manual twiddling?

Also shouldn't we really separate out the 'can modify catalogs manually'
privilege from the 'superuser' privilege?

That way dbas could make people superusers who couldn't to extremely bad
things to the catalogs?

Chris

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-12-08 03:28:25 Re: Build error?
Previous Message Tatsuo Ishii 2003-12-08 03:08:07 aggregate + view + alias crash on 7.4 stable