| 5922 | } |
| 5923 | |
| 5924 | static bytea ** |
| 5925 | CopyIndexAttOptions(bytea **srcopts, int natts) |
| 5926 | { |
| 5927 | bytea **opts = palloc(sizeof(*opts) * natts); |
| 5928 | |
| 5929 | for (int i = 0; i < natts; i++) |
| 5930 | { |
| 5931 | bytea *opt = srcopts[i]; |
| 5932 | |
| 5933 | opts[i] = !opt ? NULL : (bytea *) |
| 5934 | DatumGetPointer(datumCopy(PointerGetDatum(opt), false, -1)); |
| 5935 | } |
| 5936 | |
| 5937 | return opts; |
| 5938 | } |
| 5939 | |
| 5940 | /* |
| 5941 | * RelationGetIndexAttOptions |
no test coverage detected