message-db-temp-0.0.1.0: official-message-db-upstream/test/get-category-messages/consumer-group/error/group-member-too-small.sh
#!/usr/bin/env bash
set -e
echo
echo "GET CATEGORY MESSAGES - CONSUMER GROUP - ERROR - GROUP MEMBER TOO SMALL"
echo "======================================================================="
echo "- Retrieve a batch of messages from the category with a consumer group member that is too small"
echo "- Terminates with an error"
echo
source test/_controls.sh
cmd="SELECT * FROM get_category_messages('someCategory', consumer_group_member => -1, consumer_group_size => 1);"
echo "Command:"
echo "$cmd"
echo
set +e
psql message_store -U message_store -P pager=off -x -c "$cmd"
set -e
echo "= = ="
echo