Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwvDO-0001Fd-OS for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2016 18:03:46 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bwvDO-0001LF-41 for pgsql-general@arkaria.postgresql.org; Wed, 19 Oct 2016 18:03:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bwvDN-0001Kr-CG for pgsql-general@postgresql.org; Wed, 19 Oct 2016 18:03:45 +0000 Received: from zql.com ([206.222.31.58]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bwvDJ-0008Sg-OI for pgsql-general@postgresql.org; Wed, 19 Oct 2016 18:03:44 +0000 Received: from localhost ([127.0.0.1]) by zql.com with smtp (Exim 4.68) (envelope-from ) id 1bwvDH-0004nT-Gk; Wed, 19 Oct 2016 14:03:39 -0400 From: "Greg Sabino Mullane" To: pgsql-general@postgresql.org Subject: Re: pg_sample X-PGP-Key: 2529 DF6A B8F7 9407 E944 45B4 BC9B 9067 1496 4AC8 X-Request-PGP: http://www.biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 In-Reply-To: <2956c916-a8e0-36d7-20e0-499cca6b4bc6@swisspug.org> Content-type: text/plain; charset=UTF-8 Date: Wed, 19 Oct 2016 18:03:39 -0000 X-Mailer: JoyMail 3.1.0 Message-ID: <46143ca644445d7eeaa2923876827da3@biglumber.com> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 > I may be overseeing something, but what about dependencies between > tables, sequencies, indexes, etc.? I guess that if one takes the first > 100 rows of a table referenced by another table, there is no guarantee > that in the first 100 rows of the referencing table there will not be > some foreign key that does not exist. The only dependency that should matter is foreign keys, and yeah, if you have those, all bets are off; one would need to write something very custom indeed to slurp out the data. I could envision some workarounds, but it really depends on exactly what the OP is trying to achieve. - -- Greg Sabino Mullane greg@turnstep.com End Point Corporation http://www.endpoint.com/ PGP Key: 0x14964AC8 201610191401 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8 -----BEGIN PGP SIGNATURE----- iEYEAREDAAYFAlgHtV8ACgkQvJuQZxSWSsgrzQCglNFhkdnfg4ECC1l3l0F/Uqt0 ID4AnjGHOTR5Tsfn8MwmyBItTrOg1w7Y =6qOO -----END PGP SIGNATURE----- -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general