Re: Convert Existing Table to a Partition Table in PG10

2018-08-09 Thread Bruce Momjian
On Sun, Jul 1, 2018 at 07:09:33PM -0700, Clifford Snow wrote: > Vic, > I'd be happy to add my blog to planet.postgresql.org but my of my articles are > not on postgresql. I'm using github pages for my blog and I do have tags for > each article. Is there someone to filter on those tags?  When you

Re: Convert Existing Table to a Partition Table in PG10

2018-07-01 Thread Clifford Snow
Vic, I'd be happy to add my blog to planet.postgresql.org but my of my articles are not on postgresql. I'm using github pages for my blog and I do have tags for each article. Is there someone to filter on those tags? Clifford On Sun, Jul 1, 2018 at 5:13 PM Vik Fearing wrote: > On 02/07/18 01:43

Re: Convert Existing Table to a Partition Table in PG10

2018-07-01 Thread Vik Fearing
On 02/07/18 01:43, Clifford Snow wrote: > David, > Thanks for the suggestion. That really simplifies creating the RANGE.  > > For all, I'm pretty much a postgresql novice, but I've tried to document > what I've learned in the hopes that it can help someone else. > > You can read my blog post > at

Re: Convert Existing Table to a Partition Table in PG10

2018-07-01 Thread Clifford Snow
David, Thanks for the suggestion. That really simplifies creating the RANGE. For all, I'm pretty much a postgresql novice, but I've tried to document what I've learned in the hopes that it can help someone else. You can read my blog post at https://osm_seattle.snowandsnow.us/articles/Partitioning

Re: Convert Existing Table to a Partition Table in PG10

2018-07-01 Thread David Rowley
On 1 July 2018 at 10:15, Clifford Snow wrote: > I also leaned that my range partition value I used on a timestamp needed to > have fractional seconds. I used a range of 2017-01-01 00:00:00 to > 2017-23:59:59 which failed when I attempted to add a record that had a > timestamp of 2017-23:59:59. Add

Re: Convert Existing Table to a Partition Table in PG10

2018-07-01 Thread Francisco Olarte
On Sun, Jul 1, 2018 at 12:15 AM, Clifford Snow wrote: . > I also leaned that my range partition value I used on a timestamp needed to > have fractional seconds. I used a range of 2017-01-01 00:00:00 to > 2017-23:59:59 which failed when I attempted to add a record that had a > timestamp of 2017

Re: Convert Existing Table to a Partition Table in PG10

2018-06-30 Thread Clifford Snow
On Sat, Jun 23, 2018 at 6:42 PM Ravi Krishna wrote: > Does this help: > http://ashutoshpg.blogspot.com/2018/06/upgrade-your-partitioning-from.html > > Ravi, Thanks. I used Ashutosh Bapa's blop post as a guideline. For others attempting this, I first created my parent and child structure. Then in

Re: Convert Existing Table to a Partition Table in PG10

2018-06-23 Thread Ravi Krishna
Does this help: http://ashutoshpg.blogspot.com/2018/06/upgrade-your-partitioning-from.html

Convert Existing Table to a Partition Table in PG10

2018-06-23 Thread Clifford Snow
I have a large table that needs converting to the native partitioning available in PG10. I'm looking for a strategy to safely move the data. I was considering a CREATE TABLE new LIKE old PARTITION ON(my_timestamp). But I figured postgres would execute that before I could create the child tables. D