Re: [HACKERS] Moving tablespaces

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Andrew Dunstan <andrew(at)dunslane(dot)net>, Bruce Momjian <bruce(at)momjian(dot)us>, PostgreSQL-documentation <pgsql-docs(at)postgresql(dot)org>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] Moving tablespaces
Date: 2011-12-06 15:17:13
Message-ID: 20005.1323184633@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers

Magnus Hagander <magnus(at)hagander(dot)net> writes:
> Throwing an error seems a lot more safe in this case than just
> returning NULL. Since it's a situtation that really shouldn't happen.
> Maybe an assert, but I think a regular ereport(ERROR) would be the
> best.

Not an assert, since it's trivially user-triggerable.

regards, tom lane

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Magnus Hagander 2011-12-06 15:39:51 Re: [HACKERS] Moving tablespaces
Previous Message Magnus Hagander 2011-12-06 15:13:46 Re: [HACKERS] Moving tablespaces

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2011-12-06 15:39:51 Re: [HACKERS] Moving tablespaces
Previous Message Magnus Hagander 2011-12-06 15:13:46 Re: [HACKERS] Moving tablespaces