Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bYGjr-0004UN-Ha for pgsql-docs@arkaria.postgresql.org; Fri, 12 Aug 2016 17:59:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bYGjr-0004bb-4K for pgsql-docs@arkaria.postgresql.org; Fri, 12 Aug 2016 17:59:23 +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 1bYGjq-0004a8-AW for pgsql-docs@postgresql.org; Fri, 12 Aug 2016 17:59:22 +0000 Received: from mail-io0-x235.google.com ([2607:f8b0:4001:c06::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bYGjn-0000hd-56 for pgsql-docs@postgresql.org; Fri, 12 Aug 2016 17:59:21 +0000 Received: by mail-io0-x235.google.com with SMTP id 38so31568484iol.0 for ; Fri, 12 Aug 2016 10:59:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=TlrMkV3vm93X3IeDsP8W4IXwExwO+uMAxYnSGZ8fDSA=; b=ApyWsO+JVgf9z0/0ZCOnY5YGZplmj8OM441clTh9kovayPsg911skGeq8oLEDqORzq Egfc1rsitCnKZn6fgyrjdkwiaPq2SF4KXqARE+Za1aWxbGUD7gRxB6TQDkYnQH4cHj56 ALPE5nTEKrmgnuFAUc/yPnhcFm0/ZRmue4yINUwr+DkOCMMq5DgaaRBThSLlSyR53jIR Vil4NAn7W+Ucu7O/4F7kdm5thkYG2EmbVw/FZnN8+L8pA5VYUr7Sfw48hCi7PuoS3VH5 4HiXeMXQkkJfQqO2TwjmNu8bZWlVT+8oYhltAqhIn0pEzWd1rFpyz9MwTGIG1L88R5p+ VuFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=TlrMkV3vm93X3IeDsP8W4IXwExwO+uMAxYnSGZ8fDSA=; b=Z/oN8cNbZzNnBYha3RmFGRUj42ot4IBfgSgAzDPozw8ScR3tVaVsIlYAdbF4psEcTu Ik8flKxbSYonMGRwDvYN8citI+gT70L3KW+X3zsvnzixUWlj1QUqsZQaQd+X8gUTps0s PpF1iqYk3BDU6zrELu12Kn6stTKOoe7p684S2FsSO/lBK2Ms/ASdE4UJNqpJH7M884// FsIjBtGjI6LWAW2SzLbTpr5JSZdURa8NNp9WINlRsZhMGWp32BHvcgX4CmSGjYchcIem PO/1PB1XyLqtUgeMqNfMlYaUz/K09uYzmTkyMynsJh9WHSeEDokUHdX3kYC8NYqA756K Mv0Q== X-Gm-Message-State: AEkoouv4P0M/05MfR0NxPM0Ys1IQNEsd6qXIYJUR2qY9xDBz6jBlC4/23GpFZieQ1JShWZ4D1oedXX2q3vb1xwYD X-Received: by 10.107.40.133 with SMTP id o127mr18984319ioo.183.1471024757509; Fri, 12 Aug 2016 10:59:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.79.88.71 with HTTP; Fri, 12 Aug 2016 10:59:16 -0700 (PDT) In-Reply-To: <7639.1471024494@sss.pgh.pa.us> References: <20160811162148.26427.26037@wrigleys.postgresql.org> <26367.1471011853@sss.pgh.pa.us> <29052.1471015383@sss.pgh.pa.us> <7639.1471024494@sss.pgh.pa.us> From: Simon Riggs Date: Fri, 12 Aug 2016 18:59:16 +0100 Message-ID: Subject: Re: Wording in TABLESAMPLE documentation To: Tom Lane Cc: Simon Riggs , "Patrik VV." , pgsql-docs@postgresql.org Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org On 12 August 2016 at 18:54, Tom Lane wrote: > Simon Riggs writes: >> On 12 August 2016 at 16:23, Tom Lane wrote: >>> I think "global" might have implications we don't want. How about >>> adding ", based on a system-generated seed"? > >> What I was trying to express was that > >> SELECT setseed(dp); >> SELECT * FROM foo TABLESAMPLE ...; >> SELECT * FROM foo TABLESAMPLE ...; >> SELECT * FROM foo TABLESAMPLE ...; > >> would yield a repeatable set of samples, similarly repeatable but not >> same samples as > >> SELECT * FROM foo TABLESAMPLE ... REPEATABLE; >> SELECT * FROM foo TABLESAMPLE ... REPEATABLE; >> SELECT * FROM foo TABLESAMPLE ... REPEATABLE; > > But that's *wrong*. Not all tablesample methods make any such guarantee. > In fact, neither of our contrib methods do. Only if you use REPEATABLE > (and the method allows it) is there any promise at all about repeatability. OK, fair enough. I'll just use your wording then. Thanks. -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs