创建索引
CREATE INDEX 索引名 ON 表名("字段名");范例:CREATE INDEX power_type_index ON dev_machine_door_card("power_type");
? any 数组匹配?| 数组匹配
霸道的pgsql 正则替换函数regexp_matches一个语句可以更新所有图片地址更新UPDATE base_resident set portrait_url = REGEXP_REPLACE(portrait_url, '.*/.*/.*/.*/', 'airbridge/microbrain/base/people/2021/12/10/'),face_photo_url = REGEXP_REPLACE(face_photo_url, '.*/.*/.*/.*/', 'airbridge/microbrain/base/people/2021/12/10/'),cert_photo_url = REGEXP_REPLACE(cert_photo_url, '.*/.*/.*/.*/', 'airbridge/microbrain/base/people/2021/12/10/'),cert_photo_assistant_url = REGEXP_REPLACE(cert_photo_assistant_url, '.*/.*/.*/.*/', 'airbridge/microbrain/base/people/2021/12/10/')