Name type in postgres

From: mohsen soodkhah mohammadi <mohsensoodkhah(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Name type in postgres
Date: 2013-11-27 09:30:53
Message-ID: CAGT6x6d9aAFDcP-u0s6cgKB1P=1f1NExQjP78B1tSSTay6x7aQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

hello.
I want do understand that did can we have name without null-terminator?
in src/backend/util/adt/name.c in nameout() function is:
Name s = PG_GETARG_NAME(0);
PG_RETURN_CSTRING(pstrdup(NameStr(*s)));
what do the pstrdup() function?
do this function create string from name with null-terminate?

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2013-11-27 09:50:23 Re: Assertions in PL/PgSQL
Previous Message Peter Geoghegan 2013-11-27 09:29:59 Re: INSERT...ON DUPLICATE KEY LOCK FOR UPDATE