conjurinc / pg_random_id

Provides pseudo-random IDs in Postgresql databases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

crockford value contains space padding?

kgilpin opened this issue · comments

I'm running:

DB["SELECT crockford(pri_nextval('key_pairs_id_seq'::regclass))"].first.values[0]

and getting a value:

"1hbz3 "

which ends with a white space. Since I am using this as the PK of a Sequel record, I am worried about having white space in my identifiers. What do you suggest?

I'm not sure why it happens; I can't reproduce it, can you tell me what key value you got?
In any case, try using pri_nextval_str(regclass) instead.

Is this resolved?

I haven't seen it again

Closing then :)