Unix Technical Forum

question on english strings

This is a discussion on question on english strings within the pgsql Interfaces Pgadmin Hackers forums, part of the PostgreSQL category; --> Hi, I am about updating the Italian translation for pgAdmin but I need to understand the meaning of these ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-18-2008, 08:55 AM
Giuseppe Sacco
 
Posts: n/a
Default question on english strings

Hi, I am about updating the Italian translation for pgAdmin but I need
to understand the meaning of these strings:

msgid "Typmod in func"
msgid "Typmod in function"
msgid "Typmod out func"
msgid "Typmod out function"

What is a "Typemod" ?

Thanks,
Giuseppe


--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-18-2008, 08:55 AM
Guillaume Lelarge
 
Posts: n/a
Default Re: question on english strings

Giuseppe Sacco a écrit :
> Hi, I am about updating the Italian translation for pgAdmin but I need
> to understand the meaning of these strings:
>
> msgid "Typmod in func"
> msgid "Typmod in function"
> msgid "Typmod out func"
> msgid "Typmod out function"
>
> What is a "Typemod" ?
>


Type modifier.

See http://www.postgresql.org/docs/8.3/s...reatetype.html

An excerpt :

The optional type_modifier_input_function and
type_modifier_output_function are needed if the type supports modifiers,
that is optional constraints attached to a type declaration, such as
char(5) or numeric(30,2). PostgreSQL allows user-defined types to take
one or more simple constants or identifiers as modifiers; however, this
information must be capable of being packed into a single non-negative
integer value for storage in the system catalogs. The
type_modifier_input_function is passed the declared modifier(s) in the
form of a cstring array. It must check the values for validity (throwing
an error if they are wrong), and if they are correct, return a single
non-negative integer value that will be stored as the column "typmod".
Type modifiers will be rejected if the type does not have a
type_modifier_input_function. The type_modifier_output_function converts
the internal integer typmod value back to the correct form for user
display. It must return a cstring value that is the exact string to
append to the type name; for example numeric's function might return
(30,2). It is allowed to omit the type_modifier_output_function, in
which case the default display format is just the stored typmod value
enclosed in parentheses.


--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

--
Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:49 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com