Skip to content

Instantly share code, notes, and snippets.

@beeender
Last active July 26, 2019 08:15
Show Gist options
  • Save beeender/feecbc3c4df449f773ab773d4c3a051b to your computer and use it in GitHub Desktop.
Save beeender/feecbc3c4df449f773ab773d4c3a051b to your computer and use it in GitHub Desktop.
sub() {
to_replace=""
for var in "$@"
do
if [ -z "$to_replace" ]
then
to_replace=$var
else
RAW_STR=$(echo $RAW_STR | sed "s/${to_replace}/${var}/g")
to_replace=""
fi
done
echo "${RAW_STR}"
}
@liming01
Copy link

liming01 commented Jul 26, 2019

QUERY PLAN -------------------------------------- Seq Scan on public.rt1 Output: a  Endpoint: on segments: contentid [SEGIDX] Optimizer: Postgres query       optimizer (4 rows)
 QUERY PLAN
--------------------------------------
 Seq Scan on public.rt1
   Output: a
 Endpoint: on segments: contentid [0]
 Optimizer: Postgres query optimizer
(4 rows)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment