mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
TABLESAMPLE, SQL Standard and extensible
Add a TABLESAMPLE clause to SELECT statements that allows user to specify random BERNOULLI sampling or block level SYSTEM sampling. Implementation allows for extensible sampling functions to be written, using a standard API. Basic version follows SQLStandard exactly. Usable concrete use cases for the sampling API follow in later commits. Petr Jelinek Reviewed by Michael Paquier and Simon Riggs
This commit is contained in:
@@ -357,6 +357,10 @@ extern off_t ftello(FILE *stream);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define RAND48_SEED_0 (0x330e)
|
||||
#define RAND48_SEED_1 (0xabcd)
|
||||
#define RAND48_SEED_2 (0x1234)
|
||||
|
||||
extern double pg_erand48(unsigned short xseed[3]);
|
||||
extern long pg_lrand48(void);
|
||||
extern void pg_srand48(long seed);
|
||||
|
Reference in New Issue
Block a user