1- create or replace function phone_unserialize (
1+ create or replace function public . phone_unserialize(
22 phone text , -- номер телефона, сериализованный функцией phone_serialize()
33
44 country_code_example text , -- nullable
@@ -12,12 +12,11 @@ create or replace function phone_unserialize(
1212 local_number out text -- nullable
1313)
1414 returns record
15- stable
15+ immutable
1616 -- returns null on null input
1717 parallel safe
1818 language plpgsql
1919 set search_path = ' '
20- cost 3
2120as
2221$$
2322declare
7170end
7271$$;
7372
74- comment on function phone_unserialize(
73+ comment on function public . phone_unserialize (
7574 phone text ,
7675
7776 country_code_example text ,
@@ -87,7 +86,7 @@ comment on function phone_unserialize(
8786
8887-- ----------------------------------------------------------------------------------------------------------------------
8988
90- create or replace function phone_unserialize (
89+ create or replace function public . phone_unserialize(
9190 phone text , -- номер телефона, сериализованный функцией phone_serialize()
9291
9392 country_code_example int , -- nullable
@@ -101,7 +100,7 @@ create or replace function phone_unserialize(
101100 local_number out text -- nullable
102101)
103102 returns record
104- stable
103+ immutable
105104 -- returns null on null input
106105 parallel safe
107106 language sql
113112 separator) as u;
114113$$;
115114
116- comment on function phone_unserialize(
115+ comment on function public . phone_unserialize (
117116 phone text ,
118117
119118 country_code_example int ,
@@ -143,8 +142,8 @@ begin
143142 )
144143 select t.* , s.* , u.*
145144 from t
146- cross join phone_serialize(t .country_code , t .area_code , t .local_number ) as s(phone)
147- cross join phone_unserialize(s .phone , t .country_code , t .area_code , t .local_number ) as u
145+ cross join public . phone_serialize (t .country_code , t .area_code , t .local_number ) as s(phone)
146+ cross join public . phone_unserialize (s .phone , t .country_code , t .area_code , t .local_number ) as u
148147 where t is distinct from u
149148 );
150149
@@ -155,8 +154,8 @@ begin
155154 )
156155 select t.* , s.* , u.*
157156 from t
158- cross join phone_serialize(t .country_code , t .area_code , t .local_number ) as s(phone)
159- cross join phone_unserialize(s .phone , t .country_code , t .area_code , t .local_number ) as u
157+ cross join public . phone_serialize (t .country_code , t .area_code , t .local_number ) as s(phone)
158+ cross join public . phone_unserialize (s .phone , t .country_code , t .area_code , t .local_number ) as u
160159 where t is distinct from u
161160 );
162161
0 commit comments