pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Greg Sabino Mullane <greg@turnstep.com>
To: pgsql-general@postgresql.org
Subject: Re: pg_sample
Date: Wed, 19 Oct 2016 18:03:39 -0000
Message-ID: <46143ca644445d7eeaa2923876827da3@biglumber.com> (raw)
In-Reply-To: <2956c916-a8e0-36d7-20e0-499cca6b4bc6@swisspug.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>


-----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



view thread (25+ messages)  latest in thread

Message-ID: <46143ca644445d7eeaa2923876827da3@biglumber.com>
Permalink:  ../46143ca644445d7eeaa2923876827da3@biglumber.com/
Also on:    postgresql.org/message-id/46143ca644445d7eeaa2923876827da3@biglumber.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: greg@turnstep.com
  Subject: Re: pg_sample
  In-Reply-To: <46143ca644445d7eeaa2923876827da3@biglumber.com>
  References: <2956c916-a8e0-36d7-20e0-499cca6b4bc6@swisspug.org> <46143ca644445d7eeaa2923876827da3@biglumber.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox