From: | Ali Pouya <alipouya2(at)gmail(dot)com> |
---|---|
To: | Charles Gomes <charlesrg(at)outlook(dot)com> |
Cc: | "pgsql-performance(at)postgresql(dot)org" <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Performance on Bulk Insert to Partitioned Table |
Date: | 2013-01-17 16:03:50 |
Message-ID: | CAEEEPmysF_QxBFASYgyc0QBPBWrLTD__9s3XQju28WXuBP8UgA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Ali,
> You can save the source as partition.c and use:
>
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
> -Wformat-security -fno-strict-aliasing -fwrapv -fpic -DREFINT_VERBOSE -I.
> -I. -I"/usr/pgsql-9.2/include/server/" -D_GNU_SOURCE -c -o partition.o
> partition.c
>
> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith
> -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute
> -Wformat-security -fno-strict-aliasing -fwrapv -fpic -Wl,--as-needed
> -Wl,-rpath,'/usr/local/pgsql/lib',--enable-new-dtags -L/usr/pgsql-9.2/lib
> -lpgport -shared -o /usr/pgsql-9.2/lib/partition.so
>
> To Compile you must have postgresql-devel packages.
>
> I've added everything to github:
> https://github.com/charlesrg/pgsql_partition/blob/master/partition.c
>
> For more info check
>
> http://www.charlesrg.com/linux/71-postgresql-partitioning-the-database-the-fastest-way
Thanks Charles,
Now the compilation is OK.
I'll test and feed back more information if any.
best regards
Ali
From | Date | Subject | |
---|---|---|---|
Next Message | Jeff Janes | 2013-01-17 18:12:06 | Re: Insert performance for large transaction with multiple COPY FROM |
Previous Message | Charles Gomes | 2013-01-17 15:01:31 | Re: Performance on Bulk Insert to Partitioned Table |