A
andrey
не superuser случаем? \du andrey
что говорит?\du+ andrey
List of roles
Role name | Attributes | Member of | Description
-----------+------------+-----------+-------------
andrey | | {} |
Size: a a a
A
andrey
не superuser случаем? \du andrey
что говорит?\du+ andrey
List of roles
Role name | Attributes | Member of | Description
-----------+------------+-----------+-------------
andrey | | {} |
R
R
R
🅵
YS
drop table if exists test;
create table test (id serial primary key , value text unique );
with inserted as (
insert into test (value)
select ser::text from generate_series(0, 10) as ser
on conflict (value) do update
set value=excluded.value
returning *
)
select * from test
inner join inserted using (id) for update;
a
a
YS
NB
a
a
N
YS
a
YS
a
YS
🅵
🅵