When was a sequence created?

Moderator: NorbertKrupa

Post Reply
User avatar
Jbaskin
Intermediate
Intermediate
Posts: 61
Joined: Sat Jan 28, 2012 1:21 pm

When was a sequence created?

Post by Jbaskin » Wed Sep 18, 2013 12:02 am

Howdy!

Is there a way to tell when a sequence was created?

The \ds, sequences and vs_sequences and do not provide this info.

Thanks!

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: When was a sequence created?

Post by id10t » Wed Sep 18, 2013 12:26 am

HI!

I dont see any option:

Code: Select all

daniel@synapse:/tmp$ /opt/vertica/bin/vertica -D /vertica/test/v_test_node0001_catalog -E << EOF
> listdetails Sequence
> EOF
Catalog Editor v6.1.2-0
Sizes:  53KB chkpt, 7184KB log (42 files) [READ-ONLY]

> :Sequence
oid:45035996274075234
name:s
schema:45035996273704976
owner:45035996273704962
cache:250000
cycle:false
ordered:false
increment:1
minValue:1
maxValue:9223372036854775807
curValue:0
table:0
.

> daniel@synapse:/tmp$ 
Also looking for sequence OID in catalog (it must refer to some object if creation time is stored? ) didn't give a results.

User avatar
Jbaskin
Intermediate
Intermediate
Posts: 61
Joined: Sat Jan 28, 2012 1:21 pm

Re: When was a sequence created?

Post by Jbaskin » Thu Sep 26, 2013 1:01 pm

Thanks. This is odd, huh? I wonder why it's not easy for us to determine when a sequence was created. Oh well. Maybe in the next release? They just have to add a create_time column to the sequences table :!:

User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Re: When was a sequence created?

Post by JimKnicely » Fri Sep 27, 2013 2:00 pm

#jbaskin, that's a great suggestion for Vertica. On a client site last week I was asked when the sequences in their database were created! I couldn't answer them because I couldn't find the information in the database! :oops:
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

Post Reply

Return to “New to Vertica Database Administration”