Re: Table Partitioning in Postgres:

From: Jean-Luc Lachance <jllachan(at)nsd(dot)ca>
To: Dann Corbit <DCorbit(at)connx(dot)com>
Cc: shridhar_daithankar(at)persistent(dot)co(dot)in, "PGSQL General (E-mail)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Table Partitioning in Postgres:
Date: 2003-02-18 19:41:46
Message-ID: 3E528C7A.30302370@nsd.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How about:

PARTITION table ON atribute;

for now ?

Dann Corbit wrote:
>
> > -----Original Message-----
> > From: Jean-Luc Lachance [mailto:jllachan(at)nsd(dot)ca]
> > Sent: Tuesday, February 18, 2003 10:54 AM
> > To: Shridhar Daithankar<shridhar_daithankar(at)persistent(dot)co(dot)in>
> > Cc: PGSQL General (E-mail)
> > Subject: Re: [GENERAL] Table Partitioning in Postgres:
> >
> >
> > Shridhar,
> >
> > I must disagree with "that's is an OS's job".
> > OSs try to be generic. With databases, we know more about
> > the data structure.
> >
> > If a large table could be split (partitioned) based on
> > specific key, we could expect huge improvements for agregates
> > queries for example when that key is involved.
> >
> > Also, DBA must be able to place table on different file
> > systems. They know more about the application than the OS does.
> >
> > Even Postgresql has to be told to perform vaccum and analyze.
> > If the OS had enough intelligence we could trust it to do a
> > good job, but until then ...
>
> Oracle's Rdb has a nice syntax for index creation that takes into
> account separate areas. This will probably look horrible, but here is
> the ASCII representation of the syntax grammar:
>
> CREATE INDEX Subtopic? form
>
> CREATE
>
> INDEX
>
> Format
>
> CREATE - ----------- -> INDEX <index-name> ------------------
> -> UNIQUE -
> ------------------------------------------------------------
> -- ----------------------------------- -> ON <table-name> --
> -> STORED NAME IS <stored-name> ---
> ----------------------------- <-----------------------------
> > ( > <column-name> --
> --------------
> - ------------- ----------------------------- - - ) -
> > ASCENDING - > SIZE IS <n> ---------------
> > DESCENDING > MAPPING VALUES <l> TO <h> -
> ---------------------- , <--------------------------
> ------------------------------ <-------------------------------
> ---------------- - ----------------------- -
> -> type-clause - -> compression-clause -
> ---------------------------------------------
> ----------------------- -------------------------------------->
> -> index-store-clause -
>
> type-clause =
>
> -> TYPE IS > HASHED -------------
> ------------------------------ >
> > ORDERED ---
>
> > SCATTERED -
>
> > SORTED ----------------------------------------- -
>
> > RANKED - -----------------------------
>
> > DUPLICATES ARE COMPRESSED -
>
> ---------------------------------------------
>
> - -----------------------
> --------------------
> > sorted-index-clause -
>
> sorted-index-clause =
>
> -- - -> NODE SIZE <number-bytes> ---------- - -->
> -> PERCENT FILL <percentage> ---------
> -> USAGE - -> UPDATE - ---------------
> -> QUERY --
> ------------------- <---------------------
>
> compression-clause =
>
> - -> ENABLE COMPRESSION - ------------------------------ - ->
> > ( MINIMUM RUN LENGTH <n> ) -
> -> DISABLE COMPRESSION ---------------------------------
>
> index-store-clause =
>
> STORE ----------------------
> ---------------------------
> -> IN <area-name> - ---------------------------------- ------ >
> -> ( -> threshold-clause -> ) ----
> -> USING -> ( - --> <column-name> - -> ) ----------
> ------- , <--------
> ---------------------------------------------------
> > IN <area-name> - ------------------------------- -
> -> ( -> threshold-clause -> ) -
> --------------------------------------------------
> -> WITH LIMIT OF -> ( - --> <literal> - -> ) --- ---
> ------ , <-----
> -----------------------<--------------------------
> --------------------------------------------------------
> ------------------------------------------------------------
> -> OTHERWISE IN <area-name> ------------------------------
> > ( -> threshold-clause -> ) -
>
> threshold-clause =
>
> -- -> THRESHOLD - -> IS - -> ( --> <val1> --> ) --------- ->
> -> OF -
>
> -> THRESHOLDS - -> ARE - -----------
> -> OF -
> ----------------------------------
> -> ( --> <val1> - --------------------------- -> ) -
> -> , <val2> - -------------
> -> , <val3> -
>
> CREATE INDEX Subtopic?
> [snip]

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Deroshia 2003-02-18 19:47:44 null value in date field
Previous Message Bruce Momjian 2003-02-18 19:40:42 Re: postgres error reporting