Re: Generating valid identifiers

Discussion in 'Python' started by Terry Reedy, Jul 26, 2012.

  1. Terry Reedy

    Terry Reedy Guest

    On 7/26/2012 8:26 AM, Laszlo Nagy wrote:
    > I have a program that creates various database objects in PostgreSQL.
    > There is a DOM, and for each element in the DOM, a database object is
    > created (schema, table, field, index and tablespace).
    >
    > I do not want this program to generate very long identifiers. It would
    > increase SQL parsing time and don't look good. Let's just say that the
    > limit should be 32 characters.


    If I controlled all the component names, I would try to limit their
    lengths so that the sum of lengths was limited to the limit.

    --
    Terry Jan Reedy
     
    Terry Reedy, Jul 26, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    369
    Roedy Green
    Apr 22, 2008
  2. Laszlo Nagy

    Generating valid identifiers

    Laszlo Nagy, Jul 26, 2012, in forum: Python
    Replies:
    8
    Views:
    296
    Laszlo Nagy
    Jul 27, 2012
  3. Arnaud Delobelle

    Re: Generating valid identifiers

    Arnaud Delobelle, Jul 26, 2012, in forum: Python
    Replies:
    0
    Views:
    208
    Arnaud Delobelle
    Jul 26, 2012
  4. Peter Otten

    Re: Generating valid identifiers

    Peter Otten, Jul 26, 2012, in forum: Python
    Replies:
    0
    Views:
    160
    Peter Otten
    Jul 26, 2012
  5. Emile van Sebille

    Re: Generating valid identifiers

    Emile van Sebille, Jul 26, 2012, in forum: Python
    Replies:
    0
    Views:
    184
    Emile van Sebille
    Jul 26, 2012
Loading...

Share This Page