Re: Hot Standby on git

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Mark Mielke <mark(at)mark(dot)mielke(dot)cc>
Cc: Simon Riggs <simon(at)2ndQuadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Hot Standby on git
Date: 2009-09-27 02:57:49
Message-ID: 20090927025749.GB5944@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Mark Mielke escribió:

> Most real life code gets a little more complicated. For example,
> what if we want to simulate a network failure or "out of disk space"
> condition? What if we want to test out what happens when the Y2038
> date is reached? This requires either complex test case setup that
> is difficult to run reproducibly, or another approach - "mock". It
> means doing things like overriding the write() method, and making it
> return successful N times, and then failing on the (N+1)th time with
> ENOSPC.

I remember a kernel simulator based on User-Mode Linux called UMLsim,
with which you could stuff like this. It's dead at this point though,
and I don't know if there's any replacement.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-09-27 03:29:06 Re: [COMMITTERS] pgsql: Unicode escapes in E'...' strings Author: Marko Kreen
Previous Message Andrew Dunstan 2009-09-27 00:24:48 Re: WIP - syslogger infrastructure changes